TritonDataCenter / dragnet

event stream analysis
MIT License
11 stars 4 forks source link

should be able to use --before without --after and vice versa #11

Open davepacheco opened 9 years ago

davepacheco commented 9 years ago

The original algorithm for scanning the directory tree enumerates all paths included in the --before and --after date range. With this approach, you have to specify both, or it would be an infinite set. For the Manta backend, I made this do the smarter thing of looking at what was present and then pruning based on the date string, rather than trying to enumerate everything that should be present. This approach can support just --before or just --after. We need to apply this approach to the filesystem backend and then rip out the validation that ensures that you can't specify one without the other.