J
Jeffrey Schwab
Is there a decent way to check whether an application's local
file-system is case sensitive?
file-system is case sensitive?
"Martin Lansler said:The 'equals' method in File can be used:
File f = new File(System.getProperty("java.home"));
File fLower = new File(f.getCanonicalPath().toLowerCase());
File fUpper = new File(f.getCanonicalPath().toUpperCase());
System.out.println("isCaseSensitive: " + !(fUpper.equals(fLower)));
Running on windows this gives false, should give true on Unix machines.
Regards,
Martin.