Submitted On 22-OCT-1997
eostrom
This bug, bug 4046914, and bug 4012377 are all
facets of the same problem: There's no good way
to deal with case sensitivity in an appropriate
way across platforms. A boolean that indicated
whether files were case sensitive on the current
file system seems necessary, but most applications
wouldn't need it if File.equals() worked correctly
and File.getCanonicalPath() used a consistent
case strategy on case-insensitive platforms.
Submitted On 12-APR-2008
msundman
"In progress" for over a decade. That's not "progress" by any stretch of the imagination.
Submitted On 13-APR-2008
alan.bateman
It would be great if developers requesting this method could post comments to explain how they may use this. I ask because knowing if a file system preserves case or if searching is case sensitive or not is usually not sufficient to implement comparators or predict the name of a file before it is created. For example, on NTFS the tables for matching of Unicode characters are created when the volume is formatted are not accessible to user applications. Some file systems implement Unicode normalization. In summary, this isn't always simple and methods that test if a file system is case sensitive or not will normally not be sufficient.
Submitted On 06-JUL-2008
We have a Java application that makes backup by comparing two folders (source and target), deleting everything on target that's not on source, and copying everything from source to target that's newer on source, or not-existing on target. It works like a dream (for many years). However, when we copy a file "Test" when "test" already exists, we need to know if we need to delete "test" first. For NTFS/FAT/FAT32 we need to delete "test", whereas on other filing systems we must keep it. Therefore, a simple case-sensitivity check is sufficient. We assume the OS will do any necessary character translations.
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|