package kylin.javase.del;
import java.io.File;
import java.io.FilenameFilter;
public class judgefilter implements FilenameFilter {
@Override
public boolean accept(File pathname, String name) {
// TODO Auto-generated method stub
if(!pathname.isDirectory())
delete(new File("pathname"));
System.out.println("pathname");
return true;
}
public void delete(File file) {
// TODO Auto-generated method stub
}
}
|