diff options
author | Jose Antonio Marquez | 2012-02-06 16:32:15 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-02-06 16:32:15 -0800 |
commit | 0db246b19dc0b50f4f663a147ec92c49e656ae35 (patch) | |
tree | cf50f0dcb79ba0f62d1e913845e7ecb37e4b1168 /js/io/system/chromeapi.js | |
parent | 7f77982f49c75568431ece82d53371f6335c6e39 (diff) | |
download | ninja-0db246b19dc0b50f4f663a147ec92c49e656ae35.tar.gz |
Adding logic to copy ninja libraries
Setting up the logic to handling copying ninja required libraries into the app local file system sandbox to be used by cloud simulator.
Diffstat (limited to 'js/io/system/chromeapi.js')
-rw-r--r-- | js/io/system/chromeapi.js | 11 |
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 | //////////////////////////////////////////////////////////////////// |