Back to project page SpeedReading.
The source code is released under:
GNU General Public License
If you think the Android project SpeedReading listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package info.energix.speedreading.utils; //from ww w . j a v a 2 s . c o m import java.io.File; import java.io.FileFilter; public class IO { public static File[] listFiles(String path, Boolean onlyDirectories){ if(onlyDirectories) { FileFilter filter = new FileFilter() { @Override public boolean accept(File pathname) { return pathname.isDirectory(); } }; return new File(path).listFiles(filter); } else { FileFilter filter = new FileFilter() { @Override public boolean accept(File pathname) { return pathname.isFile(); } }; return new File(path).listFiles(filter); } } }