Simulator/src/util/io/FileMerger.java
/**
	 * Gathers all files in a directory and its sub directories.
	 * 
	 * @param directoryName
	 *            The directory name.
	 * @param files
	 *            An empty list.
	 */
Gathers all files in a directory and its sub directories.

@param directoryName
The directory name.
@param files
An empty list.
Gathers all files in a directory and its sub directories . @param directoryName The directory name . @param files An empty list .
private static void listf(String directoryName, List<File> files) {
		File directory = new File(directoryName);
		File[] fList = directory.listFiles();
		if (fList != null) {
			for (File file : fList) {
				if (file.isFile()) {
					files.add(file);
				} else if (file.isDirectory()) {
					listf(file.getAbsolutePath(), files);
				}
			}
		}
	}
private static void listf ( String directoryName , List < File > files ) { File directory = new File ( directoryName ) ; File [ ] fList = directory . listFiles ( ) ; if ( fList != null ) { for ( File file : fList ) { if ( file . isFile ( ) ) { files . add ( file ) ; } else if ( file . isDirectory ( ) ) { listf ( file . getAbsolutePath ( ) , files ) ; } } } }
Gathers all files in a directory and its sub directories.
Gathers all files in a directory and its sub directories .
// get all the files from a directory