I'm not sure if this was asked already, I can't seem to find it.
When I'm doing a folder contents enumeration, you know the usual:
FindFirstFile();
do
{
}while(FindNextFile());
What happens if while I'm still in my do/while
loop the contents of the folder change? Say, a new file or a folder is added, altered or removed. Is that reflected in the results returned by FindNextFile
?
FindFirstFile
: "Be aware that some other thread or process could create or delete a file with this name between the time you query for the result and the time you act on the information." – IInspectableFindNextFile
, right? – c00000fd