filesystem_spec icon indicating copy to clipboard operation
filesystem_spec copied to clipboard

Using callbacks to filter files?

Open hhuuggoo opened this issue 1 year ago • 1 comments

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?

hhuuggoo avatar Sep 20 '23 22:09 hhuuggoo

I am not immediately sure how you would achieve it, but it sounds like a perfectly reasonable kind of thing to try!

martindurant avatar Sep 25 '23 18:09 martindurant