Windows

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
Home » Development Group »» Windows
  • How to read directory with ftpclient?

    1 answers - 867 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

    Hello,
    I want to read a directory from my ftp server. So I use this code to read
    the dir:
    FTP.DisplayFileFlag := True;
    FTP.Passive := True;
    FTP.HostDirName := '/LVsource/';
    FTP.HostFileName := '';
    DeleteFile(TEMP_FILE_NAME);
    FTP.LocalFileName := TEMP_FILE_NAME;
    FTP.Cwd;
    FTP.Dir;
    FTP.DisplayFileFlag := False;
    Then I use FTPDisplayFile for reading die results.
    procedure TMainForm.FTPDisplayFile(Sender: T; var Msg: String);
    begin
    Log('DATA: "' + Msg + '"');
    end;
    Is there an easier way to read a directory? Is there a simple demo which
    demonstrates browsing in a ftp directory structur? I think its a hard way
    to 'decode' all the lines like this one:
    "-rw-r 1 moelski moelski 18808 May 15 16:04 Historie.rtf"
    Greetz Dominik

Re: How to read directory with ftpclient?


max 4000 letters.
Your nickname that display:
In order to stop the spam: 8 + 7 =
SPONSORED
QUESTION

SPONSORED
EMSDN