Le 11/03/2017 à 19:21, Enrico Forestieri a écrit :
I think that a problem could arise only if the file is a symlink. In this case, stat() resolves it and returns information about the pointed-to file. It is not very clear what QFileInfo::lastModified() does. Skimming the docs, it maybe does the same, possibly except on native Windows.
Does native windows support symlinks?
BTW, what's the problem in considering the file as non existing if stat() does not return 0?
That's what I began to do, and then it occurred to me that we were mixing FileName stuff with raw unix calls. If FileName::lastModified does not work correctly, I'd say that we should fix it rather than avoid using it.
JMarc