ssCore.FTP.getDirList

Request a list of files and directories in the current directory on the FTP server.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

pattern - [Optional] - A wildcard pattern that can be used to exclude files from the listing. Default value is *.


Output Parameters:

result - The directory list is returned as a collection of file entries (rows) separated by newlinLes. A newline is actually represented by two characters a carriage return (CR, or ASCII 13) and a line feed (LF or ASCII 10). Each file entry consists of 5 properties (file name, file size, file date/time, file path and the directory flag). The properties in a file entry are separated by pipe ("|") characters.


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.FTP.getDirList( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

This method can only be called asynchronously.


Notes:

The directory list is returned as a collection of file entries (rows) separated by newlines. A newline is actually represented by two characters a carriage return (CR, or ASCII 13) and a line feed (LF or ASCII 10). Each file entry consists of 5 properties (file name, file size, file date/time, file path and the directory flag). The properties in a file entry are separated by pipe ("|") characters. An example is shown below.

index.html|19472|12/17/2002 3:03:00 PM||False
examples|512|11/9/2002 12:48:00 AM||True
plugins|512|11/9/2002 12:50:00 AM||True

                

Examples:

var return_obj = ssCore.FTP.getDirList();

ssDebug.trace(return_obj.result);