public static void deleteFiles(String path){
    File file = new File(path);
    File[] fileList = file.listFiles();
    for (int i = 0; i < fileList.length; i++) {
        fileList[i].delete();
    }
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
  • 2022-12-23
  • 2021-09-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-23
  • 2021-09-14
  • 2022-12-23
相关资源
相似解决方案