Skip to content

Copy

Creates a new copy of the file.

1
myFiles.Copy(id: string):FileInfo

Parameters

string id
    The ID of the file to copy.

Returns

A copied FileInfo instance.

Remarks

This method throws an exception if the given file ID is not found.

Example

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

See Also