forked from pub-solar/os
lib/pathsIn: don't error if path doesn't exist
This commit is contained in:
parent
4f38a88191
commit
61fc640f10
|
@ -4,5 +4,6 @@
|
||||||
let
|
let
|
||||||
fullPath = name: "${toString dir}/${name}";
|
fullPath = name: "${toString dir}/${name}";
|
||||||
in
|
in
|
||||||
map fullPath (lib.attrNames (builtins.readDir dir));
|
map fullPath (lib.attrNames (lib.optionalAttrs
|
||||||
|
(builtins.pathExists dir) (builtins.readDir dir)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue