Skip to content

Copy

Creates a new copy of file

1
myFiles.Copy(id: string):FileInfo

Parameters

string id
    Id number of of file

Returns

Instance of new copied file info.

Remarks

This method throws exception if given file id is not found.

Example

1
2
var file = $File.Copy(fileId);
console.log(file.Id);

See Also