Skip to content

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