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

[vfs] Cannot used base root with FTP

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: PC

    • Bugzilla Id:
      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

            • Assignee:
              Unassigned
              Reporter:
              stephane.aubort@infolearn.ch St├ęphane Aubort
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: