FileDocCategorySizeDatePackage
CountFilesAction.javaAPI DocExample300Sun Feb 18 18:22:14 GMT 2001javasec.samples.ch15

CountFilesAction

public class CountFilesAction extends Object implements PrivilegedAction

Fields Summary
Constructors Summary
Methods Summary
public java.lang.Objectrun()

        File f = new File(File.separatorChar + "files");
        File[] fArray = f.listFiles();
        return new Integer(fArray.length);