Name: diC59631 Date: 05/26/98
Call to File.getName() returns the full pathname
and not only the pure filename.
Try this
File f = new File("a/b/c");
System.out.println(f.getName());
on Solaris this is fine. on win32 jdk1.1.6 you will get "a/b/c" NOT just "c" as it should
(Review ID: 27146)
======================================================================
- duplicates
-
JDK-4131169 java.io.File: Respecify using abstract pathnames rather than strings
-
- Closed
-