Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Operating System: Windows XP
Platform: PC
-
36962
Description
Using common-vfs-20051004 built.
Accessing the base root of the FTP server (ftp:/localost/), it is impossible
to create a file or folder. At least a folder must exist
(ftp:/localost/toto/), to use FTP. See following code.
// Root URI ->
String rootURI = “ftp://172.168.1.12/”;
// File URI ->
String myFile = “ftp://172.168.1.12/test.txt”;
// 1 Case
FileObject rootFile = myFSManager.resolveFile(rootURI);
FileObject fsRootFile = rootFile.getFileSystem().getRoot();
// In this case the rootFile != fsRootFile
// 2 Case
FileObject file = FSManager.resolveFile(myFile);
FileObject fileParent = file.getParent();
// In this case also, the fileParent != fsRootFile
Thank you