Typically, file list filtering is performed using a file filter.
new java.io.File("dir").listFiles(new FileFilter() { @Override public boolean accept(File pathname) {
The problem is how you define system files. If, for example, you want to filter out all files with the extension .sys , it's simple. If not, please define your criteria. If you are having difficulty meeting your criteria, ask a specific question.
Alexr source share