Directory File List for Mac OS X
Getting a list of files in a folder on a Mac is very similar to how you would on Windows. To generate a list of file names, you’ll need use the Terminal program — You can find this in the Utilities Folder.
Type in ls -l /Users/YourUserName/YourFolderName. For example:
ls -l /Users/Diana/Documents
Select the entire list with your mouse, copy to TextEdit, and save as filelist.txt.
After the text file is generated, you can import it into Excel:
- Open Excel
- Create a new spreadsheet
- Go to File, Open, and select filelist.txt
Excel will automatically create the necessary columns from your text file.
To learn more about this command, check out Linux ls Command.
You might also like:

