11 lines
175 B
Nix
11 lines
175 B
Nix
|
{ lib }:
|
||
|
|
||
|
{
|
||
|
getDirsInDir =
|
||
|
path: let
|
||
|
dirs = builtins.readDir path;
|
||
|
in
|
||
|
builtins.filter (name: dirs.${name} == "directory") (builtins.attrNames dirs);
|
||
|
}
|
||
|
|