From af58afcffff5ac556d16f050a325ac0406897fcd Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Tue, 7 Feb 2012 17:03:44 -0800 Subject: Copy local library to cloud Adding functionality to copy a local library to the cloud. Currently creating directory structure. Need to add ability to copy files and ensure proper mime-type is set. --- js/io/system/coreioapi.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'js/io/system/coreioapi.js') diff --git a/js/io/system/coreioapi.js b/js/io/system/coreioapi.js index 005eabf2..7edb469b 100755 --- a/js/io/system/coreioapi.js +++ b/js/io/system/coreioapi.js @@ -83,10 +83,21 @@ exports.CoreIoApi = Montage.create(Component, { handleSync: { enumerable: false, value: function (e) { - //Removing events console.log('Ninja Local Library: Ready'); + //Removing events this.ninjaLibrary.removeEventListener('sync', this, false); + this.ninjaLibrary.coreApi = this; //TODO: Add sync loading screen logic + + + + + //TODO: Remove test + this.ninjaLibrary.copyLibToCloud('Users/kgq387/Desktop/Ninja Cloud/Disk', 'montage0.6.0'); + + + + } }, //////////////////////////////////////////////////////////////////// -- cgit v1.2.3