aboutsummaryrefslogtreecommitdiff
path: root/js/io/system/fileio.js
diff options
context:
space:
mode:
authorAnanya Sen2012-02-05 19:38:28 -0800
committerAnanya Sen2012-02-05 19:38:28 -0800
commit62a5cad735a87d584272c6d4bf67328f2d4fa456 (patch)
tree7ff25a70af48526a7c697ebdd52552f97feee853 /js/io/system/fileio.js
parent272c5f74f4ce76fec9cbe360817bf23639307d3a (diff)
parent8c530e9291721083ba11746fc5b3da66dc692120 (diff)
downloadninja-62a5cad735a87d584272c6d4bf67328f2d4fa456.tar.gz
Merge branch 'FileIO' of github.com:joseeight/ninja-internal into FileIO
Diffstat (limited to 'js/io/system/fileio.js')
-rwxr-xr-xjs/io/system/fileio.js15
1 files changed, 14 insertions, 1 deletions
diff --git a/js/io/system/fileio.js b/js/io/system/fileio.js
index 4ab98606..2c49e849 100755
--- a/js/io/system/fileio.js
+++ b/js/io/system/fileio.js
@@ -17,7 +17,7 @@ NOTES:
17//////////////////////////////////////////////////////////////////////// 17////////////////////////////////////////////////////////////////////////
18///////////////////////////////////////////////////////////////////// */ 18///////////////////////////////////////////////////////////////////// */
19// 19//
20var Montage = require("montage/core/core").Montage; 20var Montage = require("montage/core/core").Montage;
21//////////////////////////////////////////////////////////////////////// 21////////////////////////////////////////////////////////////////////////
22//Exporting as File I/O 22//Exporting as File I/O
23exports.FileIo = Montage.create(Object.prototype, { 23exports.FileIo = Montage.create(Object.prototype, {
@@ -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() {