idftp.list(slList, '', false); if slList.indexof(文件夹名称) = -1 then idftp.makedir(文件夹名称) end if; 先因为无法获取到 文件夹 信息,所以 判断也就 无效 了~~~
你应该设置一下第二个参数,是过滤的 *.* - All files in the current directory. * - All directory entries in the current directory. *. - All files regardless of extension in the current directory. A??.txt - All text files that have a 3-character name starting with 'A'.
AFiles := TStringList.Create;
AFtp.List(AFiles, '*.zip', True);
AFtp.DirectoryListing.Items[0];
idftp.list(slList, '', false);
if slList.indexof(文件夹名称) = -1 then
idftp.makedir(文件夹名称)
end if;
先因为无法获取到 文件夹 信息,所以 判断也就 无效 了~~~
*.* - All files in the current directory.
* - All directory entries in the current directory.
*. - All files regardless of extension in the current directory.
A??.txt - All text files that have a 3-character name starting with 'A'.