Skip to content

ls() method parses incorrectly when a filename contain a whitespace (FTP) #1970

@ArnauCForgeFlow

Description

@ArnauCForgeFlow

I encountered an issue with FTPFileSystem regarding whitespace handling. When a file or directory name on the server contains spaces, the ls() method fails to parse the full name correctly, often truncating the result.

Assume a directory /data exists on the FTP server containing a file named "my file.txt".

Actual Output: The filename is truncated (split by space):
['/data/file.txt']

Expected Output: It should return the full filename:
['/data/my file.txt']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions