ssCore.FTP.getXMLDirList

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 XML directory list is returned as a simple collection of XML nodes.


Asynchronous Mode:

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

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


Synchronous Mode:

This method can only be called asynchronously.


Notes:

The XML directory list is returned as a simple collection of XML nodes.

<dirlist>
    <file name="index.html" size="19472" date="12/17/2002 3:03:00 PM" path=""/>
    <directory name="examples" size="512" date="11/9/2002 12:48:00 AM" path=""/>
    <directory name="plugins" size="512" date="11/9/2002 12:50:00 AM" path=""/>
</dirlist>

                

Examples:

var return_obj = ssCore.FTP.getXMLDirList();

ssDebug.trace(return_obj.result);