diff options
author | Jose Antonio Marquez | 2012-02-05 10:42:58 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-02-05 10:42:58 -0800 |
commit | 8c530e9291721083ba11746fc5b3da66dc692120 (patch) | |
tree | 937fae004df02bfb3769c1d696cd1109eff108bf /js/io/system/fileio.js | |
parent | d1fda420f898965b5dd57de0c8340886cef308a8 (diff) | |
download | ninja-8c530e9291721083ba11746fc5b3da66dc692120.tar.gz |
Setting up IO Ninja Library
This class will be used to copy locally the library needed for Ninja's IO.
Diffstat (limited to 'js/io/system/fileio.js')
-rwxr-xr-x | js/io/system/fileio.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/io/system/fileio.js b/js/io/system/fileio.js index 355812da..2c49e849 100755 --- a/js/io/system/fileio.js +++ b/js/io/system/fileio.js | |||
@@ -91,6 +91,19 @@ exports.FileIo = Montage.create(Object.prototype, { | |||
91 | }, | 91 | }, |
92 | //////////////////////////////////////////////////////////////////// | 92 | //////////////////////////////////////////////////////////////////// |
93 | // | 93 | // |
94 | deleteFile: { | ||
95 | enumerable: true, | ||
96 | value: function() { | ||
97 | //Checking for API to be available | ||
98 | if (!this.application.ninja.coreIoApi.cloudAvailable()) { | ||
99 | //API not available, no IO action taken | ||
100 | return null; | ||
101 | } | ||
102 | // | ||
103 | } | ||
104 | }, | ||
105 | //////////////////////////////////////////////////////////////////// | ||
106 | // | ||
94 | copyFile: { | 107 | copyFile: { |
95 | enumerable: true, | 108 | enumerable: true, |
96 | value: function() { | 109 | value: function() { |