Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 13, 2012, 05:35 PM   #1
TheGenerous
macrumors 6502a
 
TheGenerous's Avatar
 
Join Date: Nov 2010
Location: I'm an Austronaut
App or script that generates a list of files and folders

One day an external hard drive died and I couldn't figure out what files I lost. It would be helpful to have a list of all the files.

Is there an app or script that can generate a list of all files in the external drive? maybe I could run it once in a while or autoexecute a script for it.

thank you
__________________
I have a cool Alf picture in my profile!
TheGenerous is offline   0 Reply With Quote
Old Nov 13, 2012, 07:03 PM   #2
kryten2
macrumors 6502a
 
Join Date: Mar 2012
Location: Belgium
Take a look at the ls command. Info : https://developer.apple.com/library/...man1/ls.1.html

Example :

Code:
# Replace nameofexternalharddrive with the actual name of your external hard drive
ls -Rp /Volumes/nameofexternalharddrive > externalhdfilelist.txt
will create a file externalhdfilelist.txt in your home folder with info about files and folders on your external hard drive.
__________________
Space Corps Directive 34124
kryten2 is offline   2 Reply With Quote
Old Nov 14, 2012, 09:58 AM   #3
TheGenerous
Thread Starter
macrumors 6502a
 
TheGenerous's Avatar
 
Join Date: Nov 2010
Location: I'm an Austronaut
Very clever, I'll try it when I get home. Thank you.

EDIT: It worked man, very helpful. many thanks
__________________
I have a cool Alf picture in my profile!

Last edited by TheGenerous; Nov 14, 2012 at 09:37 PM.
TheGenerous is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Apple Script List element432 Mac Programming 3 May 6, 2014 08:11 PM
script to delete empty files and folders appatight Mac Programming 5 Aug 24, 2013 12:08 PM
Need help displaying num. of files/folders column in Finder's list view zabalex OS X 8 Dec 19, 2012 07:59 PM
Script/App to move download files? D1G1T4L Mac Basics and Help 4 Sep 27, 2012 04:56 PM
Can I organise .app files into Sub folders within my Applications folder? alexjholland Mac OS X 10.7 Lion 1 Jun 3, 2012 11:35 AM

Forum Jump

All times are GMT -5. The time now is 09:06 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC