aboutsummaryrefslogtreecommitdiff
path: root/js/io/system/chromeapi.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/io/system/chromeapi.js')
-rw-r--r--js/io/system/chromeapi.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/js/io/system/chromeapi.js b/js/io/system/chromeapi.js
index f4e04a09..fb141687 100644
--- a/js/io/system/chromeapi.js
+++ b/js/io/system/chromeapi.js
@@ -69,9 +69,16 @@ exports.ChromeApi = Montage.create(Object.prototype, {
69 69
70 //////////////////////////////////////////////////////////////////// 70 ////////////////////////////////////////////////////////////////////
71 // 71 //
72 directoryDelete: {//TODO: Make sure it uses a force delete 72 directoryDelete: {
73 enumerable: true, 73 enumerable: true,
74 value: function() { 74 value: function(directoryPath, callback) {
75 //
76 this.fileSystem.getDirectory(directoryPath, {}, function(dirEntry) {
77 //
78 dirEntry.removeRecursively(function() {
79 callback(true);
80 });
81 }, function (e) {callback(false)});
75 } 82 }
76 }, 83 },
77 //////////////////////////////////////////////////////////////////// 84 ////////////////////////////////////////////////////////////////////