diff options
author | Ananya Sen | 2012-01-30 14:41:56 -0800 |
---|---|---|
committer | Ananya Sen | 2012-01-30 14:41:56 -0800 |
commit | fcd9d2f2fd63c11160fcabdc8a554a1b2a81cc47 (patch) | |
tree | f17ef9921457ea14282b696e8870dfb6b97efdd1 /js/io/utils | |
parent | 92161460a6cbbdebfd1b0263ec6eb790091920a9 (diff) | |
download | ninja-fcd9d2f2fd63c11160fcabdc8a554a1b2a81cc47.tar.gz |
calling coreioapi.js directly since filesystem.js will be deleted
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/io/utils')
-rw-r--r-- | js/io/utils/file-utils.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/io/utils/file-utils.js b/js/io/utils/file-utils.js index c43fb41c..0afdffc6 100644 --- a/js/io/utils/file-utils.js +++ b/js/io/utils/file-utils.js | |||
@@ -4,7 +4,7 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot | |||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | 4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. |
5 | </copyright> */ | 5 | </copyright> */ |
6 | 6 | ||
7 | var fileSystem = require("js/io/system/filesystem").FileSystem; | 7 | var fileSystem = require("js/io/system/coreioapi").CoreIoApi; |
8 | 8 | ||
9 | var FileUtils = exports.FileUtils = Object.create(Object.prototype, { | 9 | var FileUtils = exports.FileUtils = Object.create(Object.prototype, { |
10 | 10 | ||
@@ -61,7 +61,7 @@ var FileUtils = exports.FileUtils = Object.create(Object.prototype, { | |||
61 | 61 | ||
62 | uri = ""+folderUri+fileUri; | 62 | uri = ""+folderUri+fileUri; |
63 | 63 | ||
64 | response = fileSystem.shellApiHandler.fileExists({"uri":uri}); | 64 | response = fileSystem.fileExists({"uri":uri}); |
65 | if(!!response && response.success && (response.status === 204)){ | 65 | if(!!response && response.success && (response.status === 204)){ |
66 | status = true; | 66 | status = true; |
67 | }else if(!!response && response.success && (response.status === 404)){ | 67 | }else if(!!response && response.success && (response.status === 404)){ |