Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

File system case sensitivity?

This is a question about file system case sensitivity

in file and directory names:


Will MacOS allow a file named 'file.txt' and a file

named 'File.txt' exist in the same directory

at the same time?


For that matter can a directory name 'aDirectory'

and an directory name 'adirectory' both exist in

the same directory at the same time?


I am confused because I am doing web related

dev work on localhost. I use php to validate the

existence of a file and use a name with a charater

in uppercase in the file name and php finds the file.


But, I use Fetch FTP client to upload a file with a

name the same as another file in the same location,

accept with a character set uppercase. It is successfully

placed according to the FTP client. It now looks like I

have both of the files in the same directory.

BUT, I delete one and both are removed.

Mac mini, macOS 10.13

Posted on Mar 17, 2020 12:47 PM

Reply
Question marked as Best reply

Posted on Mar 17, 2020 1:04 PM

No. MacOS is not a case sensitive file system by default. So you can't have two files named File.txt and file.txt. You can choose to configure the OS as case sensitive if you want to.

If you are using a case sensitive file system then File.txt is a different file than file.txt and mypage.php is a different file than MyPage.php. Most web servers are running case sensitive file systems so mysite/mypage.php

is not the same file as mysite/MyPage.php

File system formats available in Disk Utility on Mac - Apple Support

8 replies

There are no replies.

File system case sensitivity?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.