Results 1 to 4 of 4

Thread: modification time on files

  1. #1
    Join Date
    Jan 2006
    Location
    germany
    Posts
    75
    Thanks
    9
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default modification time on files

    (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!
    Quote Originally Posted by Bertolt Brecht
    What is the robbing of a bank compared to the founding of a bank?

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: modification time on files


  3. The following user says thank you to marcel for this useful post:

    soul_rebel (9th August 2007)

  4. #3
    Join Date
    Jan 2006
    Location
    germany
    Posts
    75
    Thanks
    9
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: modification time on files

    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?
    Quote Originally Posted by Bertolt Brecht
    What is the robbing of a bank compared to the founding of a bank?

  5. #4
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: modification time on files

    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

Similar Threads

  1. QDateTime GMT add sec. or - sec. from locale time....
    By patrik08 in forum Qt Programming
    Replies: 2
    Last Post: 20th February 2007, 16:39
  2. Replies: 5
    Last Post: 22nd September 2006, 08:04
  3. [Win32/VC++ 8.0] Strange problems with qrc_*.cpp files
    By mloskot in forum Installation and Deployment
    Replies: 6
    Last Post: 6th March 2006, 10:28
  4. Problem with pointers while using localtime() and time()
    By jamadagni in forum General Programming
    Replies: 7
    Last Post: 11th January 2006, 15:48

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.