Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-19

[vfs] Cannot used base root with FTP

    XMLWordPrintableJSON

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            stephane.aubort@infolearn.ch Stéphane Aubort
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: