krebs lib: init subdirsOf

This commit is contained in:
tv 2015-10-15 00:59:00 +02:00
parent 35dd3df5c6
commit 3a375d843e

View File

@ -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));
}