Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Add a filter parameter to 'dir' #134

Open
Pharap opened this issue Dec 20, 2019 · 0 comments
Open

Proposal: Add a filter parameter to 'dir' #134

Pharap opened this issue Dec 20, 2019 · 0 comments

Comments

@Pharap
Copy link

Pharap commented Dec 20, 2019

If dir accepted a filter parameter (a predicate function) then it would be easier to filter out specific file types (e.g. files with a mode of 'file', files created in the last N days) without having to resort to additional nesting within the generic for.

(One particularly notable use of such a feature would be to filter out '..' and '.' as they often aren't relevant.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant