Results 1 to 2 of 2

Thread: How to compare the modifications between a local file and a file from ftp

  1. #1
    Join Date
    Dec 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to compare the modifications between a local file and a file from ftp

    I'm working on an updater client and I want to compare the last modification dates between a local file and a file from the ftp server. While doing this, I should not consider the time on the local system. However, QFileInfo::lastModification() functions always returns the modification date on the local system. I would appreciate any suggestions please.

  2. #2
    Join Date
    Jul 2009
    Posts
    74
    Thanks
    2
    Thanked 6 Times in 6 Posts

    Default Re: How to compare the modifications between a local file and a file from ftp

    QFtp (or better QNetworkAccessManager) -> download the file in a temporary file (QTemporaryFile)
    compare local file and temporary file... (size... QCryptographicHash::Sha1 of files...)

Similar Threads

  1. Phonon and buffer of local file
    By alexandernst in forum Qt Programming
    Replies: 6
    Last Post: 28th November 2012, 09:15
  2. QDesktopServices open url & local file & pdf or doc
    By patrik08 in forum Qt Programming
    Replies: 9
    Last Post: 14th April 2012, 04:42
  3. Replies: 4
    Last Post: 22nd June 2010, 10:59
  4. Replies: 1
    Last Post: 9th May 2008, 14:49
  5. Password on local file/folder
    By icebox25 in forum Qt Programming
    Replies: 3
    Last Post: 13th April 2007, 16:33

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.