I need to process a large number of files. Processing must be able to be stopped and then restarted, in a different session. I need to restart processing from the point where it was interrupted.
The solution I was thinking of is the following:
- Save the path of the last processed file.
- Start from root, without processing, until I get to the saved file.
- Process the remaining files.
For this to work, the order in which the files are returned must be the same in both sessions. So, assuming the tree is not modified, is the order the same in both sessions? The file system is NTFS.