diff options
Diffstat (limited to 'js/io/system')
-rwxr-xr-x | js/io/system/coreioapi.js | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/js/io/system/coreioapi.js b/js/io/system/coreioapi.js index 507804fd..b8aa8890 100755 --- a/js/io/system/coreioapi.js +++ b/js/io/system/coreioapi.js | |||
@@ -1110,37 +1110,6 @@ window.hack = function (path) { | |||
1110 | } | 1110 | } |
1111 | return status; | 1111 | return status; |
1112 | } | 1112 | } |
1113 | }, | ||
1114 | |||
1115 | //////////////////////////////////////////////////////////////////// | ||
1116 | /*** | ||
1117 | * check if the file exists | ||
1118 | */ | ||
1119 | checkFileExists:{ | ||
1120 | value: function(fileName, folderUri, fileType){ | ||
1121 | var uri = "", response=null, status=true; | ||
1122 | |||
1123 | //prepare absolute uri | ||
1124 | if(/[^/\\]$/g.test(folderUri)){ | ||
1125 | folderUri = folderUri + "/"; | ||
1126 | } | ||
1127 | |||
1128 | if(!!fileType && (fileName.lastIndexOf(fileType) !== (fileName.length - fileType.length))){ | ||
1129 | fileName = fileName+fileType; | ||
1130 | } | ||
1131 | |||
1132 | uri = ""+folderUri+fileName; | ||
1133 | |||
1134 | response = this.fileExists({"uri":uri}); | ||
1135 | if(!!response && response.success && (response.status === 204)){ | ||
1136 | status = true; | ||
1137 | }else if(!!response && response.success && (response.status === 404)){ | ||
1138 | status = false; | ||
1139 | }else{ | ||
1140 | status = false; | ||
1141 | } | ||
1142 | return status; | ||
1143 | } | ||
1144 | } | 1113 | } |
1145 | //////////////////////////////////////////////////////////////////// | 1114 | //////////////////////////////////////////////////////////////////// |
1146 | }); | 1115 | }); |