nix-filter icon indicating copy to clipboard operation
nix-filter copied to clipboard

Adding support for recursive file filtering without including empty directories.

Open ursi opened this issue 3 years ago • 1 comments

I came up with an approach to fix the empty directory problem. I wanted to make you aware of it in case you'd be able to use it to improve the UX. https://github.com/NixOS/nixpkgs/pull/188301.

ursi avatar Aug 25 '22 16:08 ursi

thanks. It looks like a similar idea as https://github.com/numtide/nix-filter/issues/9#issuecomment-1194442257 where the algorithm first traverses the filesystem using builtins.readDir, and then applies the filtered result to builtins.path. It's a good idea.

zimbatm avatar Aug 26 '22 12:08 zimbatm