Let's assume that we have a path /path/to/file that is lowercase. Now on the file system the name of the file is /path/to/File.
How to check if file has correctly the same name.
NSFileManager attributesOfItemAtPath:error:
NSFileManager fileExistAtPath:
all return YES for both cases. Is there a way to get file system represtentation of the path and compare strings or is there any other extended method to check if file exists with case sensitive name.
HFS is case insensitive if not explicitly configured otherwise (which seems to be discouraged). This means that
/path/to/fileand/PaTH/tO/fILeare equivalent.You can however enumerate the files in a directory and find the name of the file using