ssCore.FileSys.copyFolder

Copies an existing folder (and its contents) to a new location.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

from - A fully qualified path to the an existing folder. This parameter supports monikers.

to - A fully qualified path to the new folder. This parameter supports monikers.

failIfExists - [Optional] - Force the file copy to fail if the topath file exists before the copy. Valid values include: true,false. Default value is false.


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.FileSys.copyFolder( 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.FileSys.copyFolder( paramsObject );


Notes:

Both from and to must be fully qualified folder names.

Do not add wildcards to the end of the paths, *.* (all files) will be assumed.

                

Examples:

ssCore.FileSys.copyFolder({from:"startdir://videos", to:"startdir://archive\\videos"});