private static void deleteFileAfterUsing(final String indexFilePath) {
  if (indexFilePath == null) {
   return;
  }
  final File file = new File(indexFilePath);
  if (file.exists()) {
   if (file.isDirectory()) {
    final File[] filses = file.listFiles();
    for (final File f : filses) {
     if (f.isFile()) {
      f.delete();
     } else {
      deleteFileAfterUsing(f.getAbsolutePath());
     }
    }
   }
   //只有文件夹变成空的了才能被删除
   file.delete();
  }
 }