PDA

View Full Version : QFileInfo for directory does not respond to 'touch'



kghose
23rd July 2008, 16:11
Hi Everyone,

QFileInfo::lastModified() for a directory will give me the last modified time correctly if a file has been altered, but not 'touch'-ed. Is this known behavior. Why is this?

Thanks
-K

aamer4yu
23rd July 2008, 19:45
What do u mean by touch-ed ??

kghose
28th July 2008, 15:09
Hmm, I didn't understand 'touch'. Touching a file will alter its modified date BUT will not affect the super-directory, so QT is doing just fine, I was mistaken. :p

Aamer - 'touch (http://en.wikipedia.org/wiki/Touch_(Unix))' is a unix command to change the file's last modified property without actually altering the file.