您的位置:首页 > 编程语言 > PHP开发

ics ftp 列目录

2016-04-09 19:32 537 查看
摘要: ICS ftp 列目录

if ftpclnt1.Connected then

begin

stm := TMemoryStream.Create;

mylist := TStringList.Create;

try

ftpclnt1.LocalStream := stm;

if ftpclnt1.Dir then // 列目录命令

begin

setlength(buffer, stm.size);

stm.Seek(0, soFromBeginning);

stm.Read(buffer[1], stm.size);

mylist.Text := buffer;

for ItemCount := 0 to mylist.Count - 1 do

begin

ParseList(mylist[ItemCount]);

end;

end;

finally

ftpclnt1.LocalStream := nil;

stm.Free;

mylist.Free;

end;

end
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: