I know. Heresy. But I am attached. I have many configuration files that use absolute path names, which creates incompatibility between OS X and Windows. If I can get OS X (which makes bets more flexible of the two) to recognize Q: /foo/bar/bim.properties as a valid absolute file name, this will save me several days of work on the trace stack and configuration files.
In the end, I need this bit of Java test code to print “SUCCESS!”. at startup:
import java.io.*;
class DriveLetterTest {
static public void main(String... args) {
File f = new File("S:");
if (f.isDirectory()) {
System.out.println("SUCCESS!");
} else {
System.out.println("FAIL!");
}
}
}
Does anyone know how to do this?
UPDATE: Thanks for all the reviews, everyone. Now it is obvious to me that I should have been more clear in my question.
, , , . (, , , , , .)
, . : , .