Skip to content

Method list() doesn't work with filenames with diacritics #84

@JakubMrozek

Description

@JakubMrozek

I have these files on the FTP server:

nějaký zajímavý název.png
some file.png

When I call list() method, I get these results:

[ 
{ name: 'nÄaký zajímavý název.png' },
 { name: 'some file.png' } 
]

I fixed this by removing the 'binary' parameter from toString() method:
https://github.com/JakubMrozek/node-ftp/commit/26f86f312454f4678a224b227e29b663079f5f8e

Now it works great. Can I send you a pull request?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions