Results 1 to 3 of 3

Thread: QFile::exists() and QFileInfo::exists() and case sensitive file names

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Posts
    132
    Thanks
    23
    Thanked 3 Times in 3 Posts

    Default QFile::exists() and QFileInfo::exists() and case sensitive file names

    Hi

    I need to check if a file exists in a folder, and that the file name actually matches the case of the search string. However on Windows QFile::exists() and/or QFileInfo::exists() does not take the case of the file name into account. I have not tested it but I suspect on Unix exists() will take the case of the file name into account.

    Is there any way to use the exists() function as on windows so that they take the case into account?

    I can probably do a manual check by looking at the file names in the directory using QDir, but I'm hoping there is an easier way.

    Thanks,
    Jaco
    Last edited by JPNaude; 21st February 2011 at 11:41.

Similar Threads

  1. detect if a URL exists or not
    By timmu in forum Qt Programming
    Replies: 5
    Last Post: 27th January 2013, 13:16
  2. Check if item exists into listwidget
    By hakermania in forum Qt Programming
    Replies: 1
    Last Post: 26th January 2011, 21:54
  3. Can't create folder if file with same name exists
    By Barry79 in forum Qt Programming
    Replies: 1
    Last Post: 6th May 2009, 16:33
  4. qmake exists() function
    By roxton in forum Installation and Deployment
    Replies: 1
    Last Post: 28th December 2008, 19:43
  5. Does anyone know if anything like this exists for Qt
    By Jachyra in forum Qt Programming
    Replies: 3
    Last Post: 8th February 2007, 22:06

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.