No FTP list parsers have been registered
use IdAllFTPListParsers
IdFTP1.List(LS);
中文目录乱码
2个步骤解决
use IdGlobal
idftp2.List(v_filelist,'',False); //这样写防止中文乱码。第三个参数必须为False
//IdFtp2.IOHandler.DefStringEncoding := TEncoding.ANSI;
IdFTP1.IOHandler.DefStringEncoding := IndyTextEncoding_OSDefault;// tencoding.Default;
The system cannot find the file specified.
编码转换方法没试这样写行不行
IndyTextEncoding(TEncoding::ANSI);
https://blog.csdn.net/dlboy2018/article/details/79013434