No Windows, você tem extensões que diferenciam maiúsculas de minúsculas, mas não pode colocar esses dois arquivos no mesmo diretório. Por que não?
Se uma unidade estiver formatada como NTFS, pode ter example.JPG
e example.jpg
.
However, if you attempt to open one of these files in a Win32 application, such as Notepad, you would only have access to one of the files, regardless of the case of the filename you type in the Open File dialog box.
Nomes de arquivos diferenciam maiúsculas de minúsculas em volumes NTFS
As part of the requirements for POSIX compliance, the Windows NT File System (NTFS) provides a case-sensitive file and directory naming convention. Even though NTFS and the POSIX subsystem each handle case-sensitivity well, 16-bit Windows-based, MS-DOS-based, OS/2-based, and Win32-based applications do not.
In NTFS, you can create unique file names, stored in the same directory, that differ only in case. For example, the following filenames can coexist in one directory on an NTFS volume:
CASE.TXT case.txt case.TXT
However, if you attempt to open one of these files in a Win32 application, such as Notepad, you would only have access to one of the files, regardless of the case of the filename you type in the Open File dialog box.
...
NTFS supports two slightly different modes of operation that can be selected by the subsystem of the application interacting with NTFS. The first is fully case sensitive and demands that file names supplied by the application match the names stored on disk including case if the file on disk is to be selected. The second mode of operation is case preserving but not case sensitive. This means that applications can select files on the disk even if the supplied name differs in case from the name stored on the disk. Note that both modes preserve the case used to create the files. The difference in behavior noted here applies only when an application needs to locate an existing file. POSIX takes advantage of the full case sensitive mode, while MS-DOS, WOW, and Win32 subsystems use the case insensitive mode.
Os nomes de arquivo são sensíveis a maiúsculas e minúsculas em volumes NTFS :
Na prática, não consegui realizar isso
Para obter dois arquivos no mesmo diretório, diferindo apenas por caso, é necessário ativar o subsistema Posix .
POSIX takes advantage of the full case sensitive mode, while MS-DOS, WOW, and Win32 subsystems use the case insensitive mode.
Para ativar o Posix, consulte: