diff options
author | hwc487 | 2012-03-09 15:55:19 -0800 |
---|---|---|
committer | hwc487 | 2012-03-09 15:55:19 -0800 |
commit | 124c1e0e4bf7a0523e641ee37352128690f15c28 (patch) | |
tree | 5e6a0461e12b234f083c96b26f377815f12c3786 /js/io/system | |
parent | 610ddac8d17518c6c6bfb5cc02445152ae2a015d (diff) | |
parent | 1a70520402677cf3ba257921839a656dcf9a76c2 (diff) | |
download | ninja-124c1e0e4bf7a0523e641ee37352128690f15c28.tar.gz |
Merge branch 'integration' of github.com:ericmueller/ninja-internal into integration
Diffstat (limited to 'js/io/system')
-rw-r--r-- | js/io/system/ninjalibrary.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/io/system/ninjalibrary.js b/js/io/system/ninjalibrary.js index 960bdef9..ff949613 100644 --- a/js/io/system/ninjalibrary.js +++ b/js/io/system/ninjalibrary.js | |||
@@ -116,7 +116,7 @@ exports.NinjaLibrary = Montage.create(Object.prototype, { | |||
116 | dir = folder.name; | 116 | dir = folder.name; |
117 | } | 117 | } |
118 | // | 118 | // |
119 | if (!this.coreApi.createDirectory({uri: dir})) { | 119 | if (!this.coreApi.createDirectory({uri: dir.replace(/\/\//gi, '/')})) { |
120 | //Error occured while creating folders | 120 | //Error occured while creating folders |
121 | return; | 121 | return; |
122 | } | 122 | } |
@@ -132,7 +132,7 @@ exports.NinjaLibrary = Montage.create(Object.prototype, { | |||
132 | this.chromeApi.fileContent(contents[i].fullPath, function (result) { | 132 | this.chromeApi.fileContent(contents[i].fullPath, function (result) { |
133 | // | 133 | // |
134 | //this.coreApi.createFile({uri: fileRoot+result.file.fullPath, contents: blob.getBlob(result.data.type), contentType: result.data.type}); | 134 | //this.coreApi.createFile({uri: fileRoot+result.file.fullPath, contents: blob.getBlob(result.data.type), contentType: result.data.type}); |
135 | this.coreApi.createFile({uri: fileRoot+result.file.fullPath, contents: result.content}); | 135 | this.coreApi.createFile({uri: (fileRoot+result.file.fullPath).replace(/\/\//gi, '/'), contents: result.content}); |
136 | }.bind(this)); | 136 | }.bind(this)); |
137 | } | 137 | } |
138 | } | 138 | } |