safeReadDir: conver path to string for reliability
This commit is contained in:
parent
466304c8cd
commit
7f3116c1cc
1 changed files with 2 additions and 1 deletions
|
@ -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