Commons VFS
  1. Commons VFS
  2. VFS-124

[FTP Provider] Regular Files in the top level directory on the server are viewed as folders.

    Details

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

      all

      Description

      The FtpFileObject representing the top level directory on the server, return regular files in the list of its children as being of type DIRECTORY.

      The reason is in the implementation of method getInfo(boolean) which tries to use the parent to retrieve this information. When not found, it returns FTPFile.DIRECTORY_TYPE.

      The correction (and correct implementation) consists in implementing the method 'doListChildrenResolved()' in the FtpFileObject, so that children of the top level directory are correctly provided with the correct info.

      1. FtpFileObject.java
        20 kB
        Gilles Gaillard

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Gilles Gaillard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development