Updated Branches: refs/heads/master 5f7fdbd88 -> 8b369515d
Fixes CB-471 - LocalFileSystem.PERSISTENT "do not back up" file attribute iOS Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/8b369515 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/8b369515 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/8b369515 Branch: refs/heads/master Commit: 8b369515d5132fb21806a343690d251c7aa5b613 Parents: 5f7fdbd Author: shazron <shaz...@gmail.com> Authored: Tue May 8 14:37:10 2012 -0700 Committer: shazron <shaz...@gmail.com> Committed: Tue May 8 14:37:10 2012 -0700 ---------------------------------------------------------------------- lib/common/plugin/Entry.js | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/8b369515/lib/common/plugin/Entry.js ---------------------------------------------------------------------- diff --git a/lib/common/plugin/Entry.js b/lib/common/plugin/Entry.js index 8c36121..444f1f7 100644 --- a/lib/common/plugin/Entry.js +++ b/lib/common/plugin/Entry.js @@ -45,6 +45,21 @@ Entry.prototype.getMetadata = function(successCallback, errorCallback) { }; /** + * Set the metadata of the entry. + * + * @param successCallback + * {Function} is called with a Metadata object + * @param errorCallback + * {Function} is called with a FileError + * @param metadataObject + * {Object} keys and values to set + */ +Entry.prototype.setMetadata = function(successCallback, errorCallback, metadataObject) { + + exec(successCallback, errorCallback, "File", "setMetadata", [this.fullPath, metadataObject]); +}; + +/** * Move a file or directory to a new location. * * @param parent