L
lcb139
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TMyFirstThread.CountFileSize(path: string);
var
sr:TsearchRec;
begin
path := IncludeTrailingBackslash(path);
if FindFirst(Path+'/*.*',faAnyfile,sr) = 0 then
begin
repeat
if (sr.Name<>'.') and (sr.Name<>'..') then
begin
if sr.Attr<>fadirectory then
begin
//
end
else
begin
countfilesize(path+sr.Name);
end;
end;
until findNext(sr)<>0
end;
FTP目錄下遍厲所有文件該怎樣寫???
還有怎樣把FTP上一個文件剪貼到另一個目錄下去?
var
sr:TsearchRec;
begin
path := IncludeTrailingBackslash(path);
if FindFirst(Path+'/*.*',faAnyfile,sr) = 0 then
begin
repeat
if (sr.Name<>'.') and (sr.Name<>'..') then
begin
if sr.Attr<>fadirectory then
begin
//
end
else
begin
countfilesize(path+sr.Name);
end;
end;
until findNext(sr)<>0
end;
FTP目錄下遍厲所有文件該怎樣寫???
還有怎樣把FTP上一個文件剪貼到另一個目錄下去?