filesystem_spec
filesystem_spec copied to clipboard
Using callbacks to filter files?
Just a question - I would like to use the recursive mechanisms in fsspec to copy directories, but I also want to exclude some paths (for example .git
directories). It does seem like the callback mechanism would be perfect for this, by implementing wrap
. I haven't seen any examples of doing so, so I was wondering if this was not recommended for any reason?
I am not immediately sure how you would achieve it, but it sounds like a perfectly reasonable kind of thing to try!