Name: mc57594 Date: 02/12/97
File still does not understand that "/" is the parent of "/usr".
Run the following on a Solaris system:
import java.io.File;
class FileTest {
public static void main(String args[]) {
File file = new File("/usr"); // Or /anything
System.out.println("Parent of /usr is: " + file.getParent());
}
}
Output is:
Parent of /usr is: null
Should be:
Parent of /usr is: /
company - Vignette Corporation , email - ###@###.###
======================================================================
- duplicates
-
JDK-4027914 java.io.File has problems with root directory (on Solaris)
-
- Closed
-