copyTo


Purpose

Copies an entry to a different location on the file system.

Signature

Entry.copyTo(dirEntry, newName, successCallback, errorCallback)

Returns

This method does not return anything.

Parameter

Name Description Type Use
dirEntry The directory to which to move the entry. DirectoryEntry required
newName The new name of the entry. If not specified, it is the entry current name. DOMString optional
successCallback A callback that is called with the entry for the new object. EntryCallback optional
errorCallback A callback that is called when errors happen. ErrorCallback optional

Related topics

Entry
Overview
Legal notice | Copyright © 2016 and Confidential to Pegasystems Inc. All rights reserved
PDN | Hybrid Container | Feedback
Advanced...