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

[FTP Provider] Unvisible files in sub directories with space in their names

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • None
    • all

    Description

      In class FTPClientWrapper, The method
      FTPFile[] listFiles(String relPath)
      returns an empty array if the relpath parameter contains a 'space' character (for example: 'test dir/child1').
      In such a case the FTP server will respond with an error 550 and a message looking like: 'invalid directory 'test'.

      The workaround is
      1. to detect such a case
      2. to perform a CWD to the targeted directory, request the listFiles
      3. CWD to the previous working directory.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gillouxgaillard@wanadoo.fr Gilles Gaillard
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: