You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use your Module File:Next very often in my daily work and I like it a lot!
I never used File::Next::dirs up to now and I think there might be a problem in that specific part of the code.
I need to read all directories within some top-level-diectories, but only one level down.
This is my setup:
I'm not understanding what you're seeing as wrong. In your first case, you're telling descend_filter to never descend, so you only get the starting points. In your second, you're telling descend_filter to always descend, so you get the entire tree. That makes sense to me.
The descend filter is NOT applied to any directory names specified as @starting_points in the constructor.
This seems useful to me when I am looking for files only. So I can decide to search just the starting points or all deeper directories also.
Searching for directories, I see a need for a similar feature: I want to see either just the directories immediately within the starting points or I might be interested in all directories through all levels.
Hello Andy,
I use your Module File:Next very often in my daily work and I like it a lot!
I never used File::Next::dirs up to now and I think there might be a problem in that specific part of the code.
I need to read all directories within some top-level-diectories, but only one level down.
This is my setup:
When I use this code:
I get only the directories I used as parameter:
When I use
I get all directories down to the leaves (which is the expected behaviour here).
Am I missing something? Or is this a use case that is rarely used maybe?
Best regards,
Imre
Environment:
The text was updated successfully, but these errors were encountered: