Results 1 to 6 of 6

Thread: how to compare filename of date and time between two folders

  1. #1
    Join Date
    Nov 2014
    Location
    Chennai
    Posts
    160
    Thanks
    65
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default how to compare filename of date and time between two folders

    i have two folders both are in different directories.(eg ~/folder1/00) (ed ~/folder2/01).00 folder contains set of images .am copying 00 folder of images to 01 folders.now i want to compare two folders(00 and 01) each filename along with dat and time.if time and date are not same i want to rechange it..how should i read and compare both folders of file name along wiht date and time one by one ..can any one give suggestion for this.
    Thanks in Advance

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: how to compare filename of date and time between two folders

    QDir::entryInfoList() http://doc.qt.io/qt-5/qdir.html#entryInfoList will give you the necessary information about each directory's files.

    Cheers,
    _

  3. #3
    Join Date
    Nov 2014
    Location
    Chennai
    Posts
    160
    Thanks
    65
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to compare filename of date and time between two folders

    i have to execute through linux script not in qt

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: how to compare filename of date and time between two folders

    Then the question has no place in a forum dedicated to Newbie Qt Programming questions. You presumably want a bash/Perl/Python/other scripting language script.

    You might look here for some clues:

    http://superuser.com/questions/71767...ory-using-bash

  5. #5
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: how to compare filename of date and time between two folders

    You are looking for rsync.

    And I am moving this thread to a more appropriate sub section.

    Cheers,
    _

  6. #6
    Join Date
    Nov 2014
    Posts
    32
    Thanked 1 Time in 1 Post
    Qt products
    Platforms
    Windows

    Default Re: how to compare filename of date and time between two folders

    I use Altap Salamander 3.05 File Manager.

Similar Threads

  1. Date Time
    By javed_alam786 in forum Qt Programming
    Replies: 2
    Last Post: 11th May 2011, 14:52
  2. setting date and time
    By nighil in forum Qt Programming
    Replies: 2
    Last Post: 24th January 2011, 15:32
  3. other time...can't get date
    By mmm286 in forum Newbie
    Replies: 7
    Last Post: 4th March 2010, 15:53
  4. Date Time
    By starcontrol in forum Qt Programming
    Replies: 3
    Last Post: 4th April 2008, 11:02

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
  •  
Qt is a trademark of The Qt Company.