I'm looking for a way to sort related files (files created at almost the same time)
My best solution atm revolves grabbing the earliest file and move it to a folder, then proceed to the next file, check if that file is created within say.. 5 min. If so, move it to the same folder and check the following file. If not go to next file, create a new folder, move it there and check the following file.
There must be a better/smarter way. One that could detect a pattern based on the files as a whole and sort them accordingly.
EDIT: I want to continuously find files create at roughly the same time.