On 11.05.16 16:47, Anton Litvinov wrote:
The method "java.nio.file.Files.createDirectory(Path dir, FileAttribute<?>... attrs)" cannot be used for this purpose also, because "java.nio.file.Path" cannot be constructed for the directory name ending with spaces and "java.io.File.toPath()" throws the exception "java.nio.file.InvalidPathException: Trailing char < > at index N: <DIRECTORY_PATH>".
Then how the File which was returned from getSelectedFile() can be used(what operations will be allowed?) by the application if such files are unsupported by the corelib?
It is possible to create a directory with such a name from the shell script on MS Windows OS, therefore I decided to use the shell script for this regression test.
Note sure that the case for windows correct: Windows_95 | Windows_98 | Windows_NT | Windows_ME -- Best regards, Sergey.