How to obtain a list of files contained in a folder (as a text file)

automatorfilefolderstextedit

I have a huge folder containing musical scores and books (mainly in .pdf).

I would like to create a text document (TextEdit will do just fine) which contains the complete list of the folder's content (possibly even divided into subfolder).

Is it possible?
If not in a TextEdit file, maybe in Numbers?
Is there any Automator process that can update that file so that when I add or modify a file, an entry is added / modified?

Best Answer

  • Open Terminal
  • find TOP-FOLDER -type f -print | sed 's_/_,_g' > ~/filelist.csv
  • Import ~/filelist.csv into Numbers or Excel