I am stuck on a point where I do not want to iterate all files all the time to see if I have indexed those or not. I have following suggested solutions with 1st one implemented.
- Iterate all files first time. Store current date/time somewhere. Next time check all files with creation date > last stored date.
- Create file on same path with extension '.done' after indexing. Next time only those files will be indexed whose '.done' file will be missing.
- Move index files to Archived directory after indexing.
3rd solution is not recommended as I cannot change directory structure as it is being used by many other people.
Is there any other better solution to get only those files that are not indexed/visited in last iteration?