Under windows, something like:
C:foo
Is the same as:
C:\current\directory\foo
At least that has always been my understanding (i.e., cd to cd:\foo, create
bar.txt, and type: "type c:bar.txt".
getCanonicalPath when passed "C:" or "C:foo" seems to be returning
C:\current\directory\c: or C:\current\directory\c:foo.
C:foo
Is the same as:
C:\current\directory\foo
At least that has always been my understanding (i.e., cd to cd:\foo, create
bar.txt, and type: "type c:bar.txt".
getCanonicalPath when passed "C:" or "C:foo" seems to be returning
C:\current\directory\c: or C:\current\directory\c:foo.
- duplicates
-
JDK-4071312 java.io.File: Problem accessing files in root directory
-
- Closed
-
- relates to
-
JDK-4164823 java.io.File.getCanonicalPath still does not handle drive-relative paths (win32)
-
- Closed
-
-
JDK-4207599 (1.1) java.io.File does not handle drive-relative paths (win32)
-
- Closed
-
-
JDK-4131169 java.io.File: Respecify using abstract pathnames rather than strings
-
- Closed
-