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

Expose glob options to distinguish files and directories #196

Open
Bilge opened this issue Feb 16, 2021 · 0 comments
Open

Expose glob options to distinguish files and directories #196

Bilge opened this issue Feb 16, 2021 · 0 comments

Comments

@Bilge
Copy link

Bilge commented Feb 16, 2021

Feature Proposal

To facilitate filtering files vs directories, exposing glob options is essential. The underlying glob library has an option called onlyFiles but this is not available via this plug-in. It is not possible to distinguish files and directories using glob patterns alone.

Feature Use Case

glob('*') should be able to match only files, without manually excluding every directory by name. Sometimes it is possible to distinguish files from directories if we can assume files always contain a dot (.) and directories never do (glob('*.*')), but this is not always the case and never guaranteed.

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

No branches or pull requests

1 participant