> Maybe it's already clear, 

Yes, I understand now.

How do we solve it then ?

Do we need a new class that we use internally. In this class we store a
filename, which is case-sensitive on case-sensitive filesystem, that is
guaranteed to be a long filename and not a short one (on Windows), that
is not a symlink, that is relative or absolute (pick one or both).

Ideally, we can now in most cases just compare the strings. Only when we
have to deal with user-defined paths we need to convert it into our
standard format, or we ask QFileInfo whether a file already exists etc.

(PS. The new class we should then call FileName and the current FileName
class we should call File or FileInfo (maybe later)).

Vincent

Reply via email to