PDA

View Full Version : modification time on files



soul_rebel
9th August 2007, 20:26
(why) is it not possible to check the modification time on files?
qurlinfo provides lastModified() which can be emited on files from an ftp, but i dont see anything similar for regular files?

would be really great if there where something like that to compar local and remote file...

thx!

marcel
9th August 2007, 20:35
See QFileInfo::lastModified(), QFileINfo::created() and QFileInfo::lastRead()

Regards

soul_rebel
9th August 2007, 21:48
thanks!
i really didnt see that ;)

btw. do you know of a way to get QUrlInfo from a file located on an ftp server without having to list contents of its parentdir and catch all of the listInfo-signals?

marcel
9th August 2007, 21:51
btw. do you know of a way to get QUrlInfo from a file located on an ftp server without having to list contents of its parentdir and catch all of the listInfo-signals?


No, that's pretty much the only way.
You could cache(for small time periods) the url infos and not be forced to query the server each time.

Regards