krebs lib: init subdirsOf
This commit is contained in:
parent
35dd3df5c6
commit
3a375d843e
@ -24,4 +24,8 @@ builtins // lib // rec {
|
||||
null = "NULL";
|
||||
string = toJSON x; # close enough
|
||||
}.${typeOf x};
|
||||
|
||||
subdirsOf = path:
|
||||
mapAttrs (name: _: path + "/${name}")
|
||||
(filterAttrs (_: eq "directory") (readDir path));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user