Get list of files and generate directory tree.