forked from pub-solar/os
safeReadDir: conver path to string for reliability
This commit is contained in:
parent
466304c8cd
commit
7f3116c1cc
|
@ -41,5 +41,6 @@ rec {
|
||||||
in
|
in
|
||||||
lib.filterAttrs filter packages;
|
lib.filterAttrs filter packages;
|
||||||
|
|
||||||
safeReadDir = path: lib.optionalAttrs (builtins.pathExists path) (builtins.readDir path);
|
safeReadDir = path:
|
||||||
|
lib.optionalAttrs (builtins.pathExists (toString path)) (builtins.readDir (toString path));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue