[Interest] QFile: Check for case sensitive name match on Windows?

Schimkowitsch Robert Robert.Schimkowitsch at andritz.com
Mon Nov 7 11:08:05 CET 2011


How can I check whether a file name matches case sensitively on Windows?

The data worked on can be transferred between Windows and Linux, and
entering file names which only match CaseInsensitive would work on
Windows, but would break the data for Linux.

I have tried using QFileInfo, but it does not show the actual case
sensitivity of the filename (which I have filed as a bug, btw.), so I
cannot simply compare the "filename as the written in the data" and the
"filename as it is on the file system", because I am not getting the
actual file system file name anyway.

Do you have any ideas how to check whether a file name matches case
sensitively on Windows?

Kind regards

Robert Schimkowitsch

#####################################################################################
This message and any attachments are solely for the use of the intended recipients. They may contain privileged and/or confidential information or other information protected from disclosure. If you are not an intended recipient, you are hereby notified that you received this email in error and that any review, dissemination, distribution or copying of this email and any attachment is strictly prohibited. If you have received this email in error, please contact the sender and delete the message and any attachment from your system.
Thank You.
  ANDRITZ HYDRO GmbH
  Rechtsform/ Legal form: Gesellschaft mit beschrankter Haftung / Corporation 
  Firmensitz/ Registered seat: Wien 
  Firmenbuchgericht/ Court of registry: Handelsgericht Wien 
  Firmenbuchnummer/ Company registration: FN 61833 g
  DVR: 0605077 
  UID-Nr.: ATU14756806
#####################################################################################

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20111107/8d41fdbd/attachment.html>


More information about the Interest mailing list