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