Filelist in a file

To make a filelist in a file. Simply use the terminal from the root of the folder your want the list from:

type: ls -Rla > files.txt

for a list inclusing the full path of eacht file

or 

ls -Ra > files.txt

for the filenames only