Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

djnickburrett

macrumors newbie
Original poster
Feb 4, 2015
3
0
Hello

I would like to list the files in the folders and sub folders of my iTunes Media folder.

I don't want to list the folders, just the files - is that possible?

Thanks in anticipation
Nick
 
You'd need to use the ls command but a quick review of the man pages, doesn't seem to indicate any way to only list files not directories. I'm sure there's a way, I'm just not familiar with it enough :(
 
Use

Code:
find . -type f

or more specifically, for the iTunes Media

Code:
find ~/Music/iTunes/iTunes\ Media/Music -type f

Refer to find command manpage for more info (careful: its a VERY flexible command ;) )
 
Hello

Code:
find ~/Music/iTunes/iTunes\ Media/Music -type f

That is very useful indeed. Is it possible to exclude hidden files such as .DS_Store
 
One way to exclude hidden files and directories is

Code:
find ~/Music/iTunes/iTunes\ Media/Music -type f -not -path '*/\.*'
 
I would like to list the files in the folders and sub folders of my iTunes Media folder.

I don't want to list the folders, just the files - is that possible?
Are you looking to list just the music files but not the folders? If so, that's simple to do with Finder and TextEdit.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.