ssCore.FTP.changeDir

The current directory on the FTP server is changed to the directory specified by remotepath.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

remotePath - The path of the new current directory on the FTP server.


Output Parameters:

No output parameters.


Asynchronous Mode:

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

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


Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.FTP.changeDir( paramsObject );


Notes:

You can specify relative or absolute paths for FTP.changeDir.

If the first two characters in the remotepath are ".." then a change to one level above the current directory is performed.

Set the first character of the remotepath to "/" to specify an absolute directory.

                

Examples:

ssCore.FTP.changeDir({remotePath:"/files"});