on PCs, a leading backslash before a drive letter is not always stripped
by sysNativePath, leading to partial failure of some File methods:
new File("\\c:\\foo").renameTo(new File("\\c:\\bar"))
by sysNativePath, leading to partial failure of some File methods:
new File("\\c:\\foo").renameTo(new File("\\c:\\bar"))
- duplicates
-
JDK-4042592 java.io.File.renameTo should work with non-canonical pathnames
- Closed