Windows FindFirst/NextFile Returned Files Order

133 views Asked by At

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:

  1. Save the path of the last processed file.
  2. Start from root, without processing, until I get to the saved file.
  3. 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.

0

There are 0 answers