myFile.copy( target ) in Photoshop DOM

Copy the file to the given location.

Arguments

nametypedescription
target File The target location. May also<
Return Type
Boolean

Description

If there is a file at the target location, it is overwritten.

You can supply an URI path name as well as another File object for the target parameter.

This method resolves any aliases to find the source file.

Returns true if the copy was successful, false otherwise.