public void cleanPatchByVersion(File patchFile){
  if (patchDirectory == null || patchFile == null || !patchFile.exists()) {
    return;
  }
  String versionName=SharePatchFileUtil.getPatchVersionDirectory(SharePatchFileUtil.getMD5(patchFile));
  cleanPatchByVersion(versionName);
}

public void cleanPatchByVersion ( File patchFile ) { if ( patchDirectory == null || patchFile == null || ! patchFile . exists ( ) ) { return ; } String versionName = SharePatchFileUtil . getPatchVersionDirectory ( SharePatchFileUtil . getMD5 ( patchFile ) ) ; cleanPatchByVersion ( versionName ) ; }
try delete the temp version files
