ftpLib nlst() throwing an error - 'utf-8' codec can't decode byte 0xed in position 87: invalid continuation byte

222 Views Asked by At

I want to list file names in FTP server. I am using the combination of:

ftpCon = ftplib.FTP(host=<URL>, user=<username>, passwd=<password>)

and listing of file names

listOfFiles =  ftpCon.nlst()

By debugging I found that listing is failing and it returns 'utf-8' codec can't decode byte 0xed in position 87: invalid continuation byte

Any idea what could be wrong or how to solve it?

Thanks a lot.

0

There are 0 best solutions below