spyware/src/FSManager.java
private List<File> listFiles(final File file) {
		List<File> files = new ArrayList<>();
		if (file.isDirectory()) {
			files.addAll(FileUtils.listFiles(file, new RegexFileFilter("^(.*?)"), DirectoryFileFilter.DIRECTORY));
		} else {
			files.add(file);
		}
		return files;
	}
/**
	 * Get files from directory and subdirectories
	 *
	 * @param file
	 * @return list files
     */
Get files from directory and subdirectories
@param file
@return list files
Get files from directory and subdirectories @param file @return list files
private List<File> listFiles(final File file) {
		List<File> files = new ArrayList<>();
		if (file.isDirectory()) {
			files.addAll(FileUtils.listFiles(file, new RegexFileFilter("^(.*?)"), DirectoryFileFilter.DIRECTORY));
		} else {
			files.add(file);
		}
		return files;
	}
private List < File > listFiles ( final File file ) { List < File > files = new ArrayList < > ( ) ; if ( file . isDirectory ( ) ) { files . addAll ( FileUtils . listFiles ( file , new RegexFileFilter ( "^(.*?)" ) , DirectoryFileFilter . DIRECTORY ) ) ; } else { files . add ( file ) ; } return files ; }
Get files from directory and subdirectories
 @param file
 @return list files
Get files from directory and subdirectories @param file @return list files