Case Sensitive FileManager.default.fileExists(atPath:)

21 Views Asked by At

When I on my Mac run

FileManager.default.fileExists(atPath: path)

the resulting check is case-insensitive. So filePath will return the same as FiLePaTh. I need it to do a case-sensitive check however. Is there any way of achieving this?

I am running this on macOS 12.3 on an APFS formatted volume.

0

There are 0 best solutions below