-------定义--------
removeManifestFile:function(file){
console.log('-------------removeManifestFile------------');
if(jsb.fileUtils.isFileExist(file)){
console.log('-------------'+file+' exist------------');
jsb.fileUtils.removeFile(file);
!jsb.fileUtils.isFileExist(file)?(console.log('-------------remove file successful------------')):(console.log('-------------remove file failed------------'));
}else{
console.log('-------------'+file+' not exist------------');
}
//jsb.fileUtils.renameFile(this._storagePath+'/', this.TEMP_VERSION_FILENAME, this.VERSION_FILENAME);//
},
removeDirectory:function(path){
console.log('-------------removeDirectory------------');
if(jsb.fileUtils.isDirectoryExist(path)){
console.log('-------------'+path+' exist------------');
jsb.fileUtils.removeDirectory(path);//
!jsb.fileUtils.isDirectoryExist(path)?(console.log('-------------remove directory successful------------')):(console.log('-------------remove directory failed------------'));
}else{
console.log('-------------'+path+' not exist------------');
}
},
-----------调用------------
this._tempStoragePath=this._storagePath+'_temp';// /
this.removeDirectory(this._tempStoragePath);