lib/pathsIn: don't error if path doesn't exist

This commit is contained in:
Pacman99 2021-03-25 15:21:10 -07:00
parent 4f38a88191
commit 61fc640f10

View File

@ -4,5 +4,6 @@
let
fullPath = name: "${toString dir}/${name}";
in
map fullPath (lib.attrNames (builtins.readDir dir));
map fullPath (lib.attrNames (lib.optionalAttrs
(builtins.pathExists dir) (builtins.readDir dir)));
}