@FTPNTFindFirstFile
Syntax
@FTPNTFindFirstFile(FTPNTHANDLE;TEXTPATTERN;FNCONOPTIONS;RETTEXTFILENAME);
@FTPNTFindFirstFile(FTPNTHANDLE;TEXTPATTERN;FNCONOPTIONS;RETTEXTFILENAME;RETTEXTATTRIBUTES);
@FTPNTFindFirstFile(FTPNTHANDLE;TEXTPATTERN;FNCONOPTIONS;RETTEXTFILENAME;RETTEXTATTRIBUTES;RETFNFILESIZE);
Description
This @Function is available only on Windows!
TEXT TEXTPATTERN specifies the file name with the search criteria (wildcards, for example "*.jpg").
Returns the current directory path on the FTP server.
On success, the @Function returns a TEXT containing the current directory path; otherwise, @Error.
FN FNCONOPTIONS can be used to specify connection options!
0 is the default!
TEXT RETTEXTATTRIBUTES
A=FILE_ATTRIBUTE_ARCHIVE
C=FILE_ATTRIBUTE_COMPRESSED
D=FILE_ATTRIBUTE_DIRECTORY
E=FILE_ATTRIBUTE_ENCRYPTED
H=FILE_ATTRIBUTE_HIDDEN
O=FILE_ATTRIBUTE_OFFLINE
R=FILE_ATTRIBUTE_READONLY
S=FILE_ATTRIBUTE_SYSTEM
T=FILE_ATTRIBUTE_TEMPORARY
Example: @FTPNTGetCurrentDirectory(FTPNTHANDLE)
APPLICATIONTEXT:="Test";
ftpnth:=@FTPNTOpen(APPLICATIONTEXT);
TEXTCurrentDirectoryPath:=@FTPNTGetCurrentDirectory(ftpnth);
ftpnth:=@FTPNTClose(ftpnth);
An FTP session is started, the current directory path on the FTP server is assigned to the variable TEXTCurrentDirectoryPath and then the FTP session is closed again.
Note : This text was machine-translated and may contain inaccuracies.
