Allows to list all files present into a remote directory on a FTP server.
Syntax
CHGVAR |
VAR(&CMD) VALUE('FTPLISTDIR') |
CHGVAR |
VAR(&PARM1) VALUE(' LocalFile="Local file"; RemoteDir="Remote directory" ') |
CHGVAR |
VAR(&PARM2) VALUE(' ') |
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 &PARM2 &RESULT) |
Parameters
Parameters |
|
Parm1 |
LocalFile : complete path and name of the local file used to get the list of the files contained into the remote directory.
RemoteDir : complete path from the FTP server root and name of the remote directory on the FTP server.
|
RESULT |
Contains eventually error messages.
|
|
|
Example
LNCCMD CMD(FTPLISTDIR)
PARM1('RemoteDir="/www/Data/temp/mkdir_test";+
LocalFile="c:\temp\mdir_test.csv"')