FileSystem.Directory.copyTo

New in package 167

Syntax

directory.copyTo( directory[, options ] );

Description

Copies the directory into the specified destination directory, returns new FileSystem.Directory object.

Parameters

Parameter Type Description
directory String or Directory Target directory.
options.name String New directory name; by default directory [name] is used.

FileSystem.directory() options can also be used.

Example

Save a downloaded files in a temporary directory:

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.