dagolden / Path-Tiny

File path utility
41 stars 59 forks source link

Visit doesn't visit root folder #209

Closed ambs closed 6 years ago

ambs commented 6 years ago

This might be the desired behavior, but in that case, it would be great to document it. If I ask Path::Tiny to visit /tmp, it will visit all its child, but not /tmp itself. And as expected, I can't ask Path::Tiny to visit / so that /tmp is included O:-)

Of course that is is only one file, that can be treated independently. But for me it feels odd. Thus, I would suggest to change its behavior or add a documentation note (I can do a PR, just let me know what side to lean to).

xdg commented 6 years ago

It's already documented: Executes a callback for each child of a directory. I think I'm fine how it is, as the docs also point to Path::Iterator::Rule for a better iterator, anyway.