Friday, January 14, 2011

Creating a file and folder listing in OSX

I needed to create a file and folder listing to check for duplicate and incorrectly named photos and other files.

Since OSX is based on unix, you can use the 'ls' command in terminal. Navigate to where you want to start from:

    cd ~/pictures/nikon

and then run

    ls -R > picture.listing.txt

This command moves through all the folders within 'nikon' and sends the name of each folder and file to the file picture.listing.txt.

No comments: