aboutsummaryrefslogtreecommitdiff
path: root/js/io/system
diff options
context:
space:
mode:
authorhwc4872012-02-22 10:58:40 -0800
committerhwc4872012-02-22 10:58:40 -0800
commit1a72686c9b915c488f9b430995787d2176671561 (patch)
tree849ca3d54f68c6c327c3daa240b48c7be6f73e91 /js/io/system
parentbb441ec8f8080cdaa52257a40531c62c47028667 (diff)
parent2f24dafec79583547fe663d5a387d8ef15aae3bf (diff)
downloadninja-1a72686c9b915c488f9b430995787d2176671561.tar.gz
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into integration
Diffstat (limited to 'js/io/system')
-rwxr-xr-xjs/io/system/coreioapi.js31
1 files changed, 0 insertions, 31 deletions
diff --git a/js/io/system/coreioapi.js b/js/io/system/coreioapi.js
index a75b59bb..2051da43 100755
--- a/js/io/system/coreioapi.js
+++ b/js/io/system/coreioapi.js
@@ -1096,37 +1096,6 @@ exports.CoreIoApi = Montage.create(Component, {
1096 } 1096 }
1097 return status; 1097 return status;
1098 } 1098 }
1099 },
1100
1101 ////////////////////////////////////////////////////////////////////
1102 /***
1103 * check if the file exists
1104 */
1105 checkFileExists:{
1106 value: function(fileName, folderUri, fileType){
1107 var uri = "", response=null, status=true;
1108
1109 //prepare absolute uri
1110 if(/[^/\\]$/g.test(folderUri)){
1111 folderUri = folderUri + "/";
1112 }
1113
1114 if(!!fileType && (fileName.lastIndexOf(fileType) !== (fileName.length - fileType.length))){
1115 fileName = fileName+fileType;
1116 }
1117
1118 uri = ""+folderUri+fileName;
1119
1120 response = this.fileExists({"uri":uri});
1121 if(!!response && response.success && (response.status === 204)){
1122 status = true;
1123 }else if(!!response && response.success && (response.status === 404)){
1124 status = false;
1125 }else{
1126 status = false;
1127 }
1128 return status;
1129 }
1130 } 1099 }
1131 //////////////////////////////////////////////////////////////////// 1100 ////////////////////////////////////////////////////////////////////
1132}); 1101});