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

sort discovered files by date modified #60

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

splashx
Copy link

@splashx splashx commented Aug 5, 2015

for people doing bulk import it's important to know which files are going to be processed.
Ultimately a better patch is to pass how to sort (date modified, alphabetically, none - in this case the user should rely on the fact that Dir.glob behaves differently across platforms) and logstash e.g. the file plugin could have option "sort".

for now (if the pull request is accepted) I think it's enough for users to KNOW that files are sorted by date modified or alternatively alphabetically:
globbed_dirs = Dir.glob(path).sort

splashx added 2 commits August 5, 2015 14:45
for people doing bulk import it's important to know which files are going to be processed.
Ultimately a better patch is to pass how to sort (date modified, alphabetically, none - in this case the user should rely on the fact that Dir.glob behaves differently across platforms) and logstash e.g. the file plugin could have option "sort". 

for now I think it's important users KNOW that files are sorted by date modified or alternatively alphabetically: 
```globbed_dirs = Dir.glob(path).sort```
sort discovered files by date modified
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

Successfully merging this pull request may close these issues.

1 participant