Function EN Version 5.00

@FTPNTFindNextFile

FTP

Syntax

@FTPNTFindNextFile(FTPNTHANDLE;RETFNMORE;RETTEXTFILENAME);
@FTPNTFindNextFile(FTPNTHANDLE;RETFNMORE;RETTEXTFILENAME;RETTEXTATTRIBUTES);
@FTPNTFindNextFile(FTPNTHANDLE;RETFNMORE;RETTEXTFILENAME;RETTEXTATTRIBUTES;RETFNFILESIZE);

Description

This @Function is available only on Windows!

Returns the current directory path on the FTP server.
On success, the @Function returns a TEXT containing the current directory path; otherwise, @Error.

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.