删除workspace下的vss的scc文件
作者:互联网
原文链接:http://www.cnblogs.com/riasky/p/3473044.html
public class DeleteAA {
public static void main(String[] args) {
DeleteAA aa=new DeleteAA();
aa.delete(new File("G:\\testEnvironment\\workspace\\location"));
}
private void delete(File file){
if(file.isDirectory()){
File[] files = file.listFiles();
for (File file2 : files) {
delete(file2);
}
}else{
String name=file.getName();
if(name.endsWith(".scc")){
System.out.println(file.getAbsolutePath());
file.delete();
}
}
}
}
转载于:https://www.cnblogs.com/riasky/p/3473044.html
标签:aa,file2,vss,file,scc,File,DeleteAA,workspace,delete 来源: https://blog.csdn.net/weixin_30532987/article/details/97243663