FileSystemService.copyEntry Method
Copies the file or folder with the specified ID.
Parameters
- id
-
Type: String
The ID of the file or folder to copy.
- targetId
-
Type: String
The target ID of the folder to move the specified file or folder to.
- newName
-
Type: String
(optional) The new name for the copied file.
Optional: True
- overwrite
-
Type: Boolean
(optional) If a file with the same name already exists, setting this flag will overwrite the existing file.
Optional: True
- autoGenerateName
-
Type: Boolean
(optional) If the copied file should have an auto generated name, then this should be marked as true.
Optional: True
Return Value
Type: jQuery.Promise
Value: dundas.filesystem.CopyResult
A promise object that is resolved when the call is complete.
Contains a dundas.filesystem.CopyResult describing the operation result if successful.