int FtpCountFilesInFolder(int nSessionID,
Returns the number of
files listed according to the provided wildcard mask.
nSessionID – the identifier of
FTP session opened with FtpOpen().
mask – string containing
the name of the file to find or a wildcard (*.*).
Call this function to
count files in the folder on the connected server according to the
specified wildcard mask.Returned value does not include
Plug-in module: nd_ftpplg.npl
The following example demonstrates the use of
int iSessionID = FtpOpen("127.0.0.1", "admin", "admin")
if (iSessionID == FAIL)
Println("Failed to open FTP connection")
int nFilesCount = FtpCountFilesInFolder(iSessionID, "*.*")
Println("Number of files in current folder =