From 23d958580a785ae265bb0a78f238093cc93cee85 Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Sat, 4 Feb 2012 22:32:18 -0800 Subject: Setting up Chrome File System API class Chrome file system API will be used to copy over files from the sandboxed app into the sandboxed file system directory (in Chrome) to then be used by the core API and the cloud. --- js/io/system/fileio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/io/system/fileio.js') diff --git a/js/io/system/fileio.js b/js/io/system/fileio.js index 4ab98606..355812da 100755 --- a/js/io/system/fileio.js +++ b/js/io/system/fileio.js @@ -17,7 +17,7 @@ NOTES: //////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// */ // -var Montage = require("montage/core/core").Montage; +var Montage = require("montage/core/core").Montage; //////////////////////////////////////////////////////////////////////// //Exporting as File I/O exports.FileIo = Montage.create(Object.prototype, { -- cgit v1.2.3 From 8c530e9291721083ba11746fc5b3da66dc692120 Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Sun, 5 Feb 2012 10:42:58 -0800 Subject: Setting up IO Ninja Library This class will be used to copy locally the library needed for Ninja's IO. --- js/io/system/fileio.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'js/io/system/fileio.js') 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, { }, //////////////////////////////////////////////////////////////////// // + deleteFile: { + enumerable: true, + value: function() { + //Checking for API to be available + if (!this.application.ninja.coreIoApi.cloudAvailable()) { + //API not available, no IO action taken + return null; + } + // + } + }, + //////////////////////////////////////////////////////////////////// + // copyFile: { enumerable: true, value: function() { -- cgit v1.2.3