idftp.list(lsList, '', false);无法获取到 服务器 文件夹 信息,只能获取 信息

解决方案 »

  1.   


          AFiles := TStringList.Create;
          AFtp.List(AFiles, '*.zip', True);
          AFtp.DirectoryListing.Items[0];
      

  2.   


    idftp.list(slList, '', false); 
    if slList.indexof(文件夹名称) = -1 then 
    idftp.makedir(文件夹名称) 
    end if; 
    先因为无法获取到 文件夹 信息,所以 判断也就 无效 了~~~
      

  3.   

    你应该设置一下第二个参数,是过滤的
            *.* - 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'.