Q&A

  • [질문]Indy10 FTP.List 에러 수정방법 좀 알려주세요!!!

Indy9 FTP.List는 잘 되는데 잘못해서 Indy10을 설치하는 바람에 에러가 나면서 DirectoryListing.Items[0].ModifiedDate를 읽을 수 없는데 방법 좀 알려주세요.

FTP.List가 Indy9와 구조가 다른가요?

 

 

<!-- Code -->

  var tmpSList:TStringList;

  srcFile : string;

begin

           srcFile :='test.exe';

           with IdFTP1 do
           begin

              tmpSList := TStringList.Create;
              try
                 List(tmpSList,srcFile,true);  //문제발생.


                 showmessage(formatdatetime('yyyymmddhhnnss',DirectoryListing.Items[0].ModifiedDate));
              except

              end;

          end;

end;

<!-- Code -->

1  COMMENTS
  • Profile
    백록화 2011.04.29 01:37

    TIdFTP.UseMLIS 속성이 기본적으로 False 로 되어 있는데 True 로 하시면 될껍니다.