interface IFileCapcity
{
boolean capcityacccept(File f,long capcity);
}
class Filecapcity implements IFileCapcity
{
private long capcity;
private File f;
public boolean capcityacccept(File f,long capcity)
{
long filecapcity=0l;
File[] fs=f.listFiles();
for (File index : fs)
{
filecapcity= index.length();
}
return filecapcity>capcity;
}
}
public class FileCapcityFilter
{
public static void main(String[] args)
{
File f = new File("G:/file");
String[]sgv =listAll(f,1024);
for (String str : sgv) {
System.out.println(str);
}