Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Create a spreadsheet of Finder folder structure

Is it possible to select a folder in the finder and create a spreadsheet of all of its hierarchy?


I need to have an "at a glance" view of ALL of my files and folders at once.. Is this possible?

iMac, Latest OS

Posted on Oct 1, 2013 5:16 PM

Reply
Question marked as Best reply

Posted on Oct 1, 2013 6:32 PM

For a text file of ALL files and Folders in your Home Directory,

In Terminal, enter:



find ~ -print | sed -e 's;[^/]*/;|--->;g;s;--->|; |;g' > ~/Desktop/Tree.txt


To direct to a specific Folder, replace ~ with the Directory (i.e. find ~/Documents):


find ~/Documents -print | sed -e 's;[^/]*/;|--->;g;s;--->|; |;g' > ~/Desktop/Tree.txt
4 replies
Question marked as Best reply

Oct 1, 2013 6:32 PM in response to Rotor-Head

For a text file of ALL files and Folders in your Home Directory,

In Terminal, enter:



find ~ -print | sed -e 's;[^/]*/;|--->;g;s;--->|; |;g' > ~/Desktop/Tree.txt


To direct to a specific Folder, replace ~ with the Directory (i.e. find ~/Documents):


find ~/Documents -print | sed -e 's;[^/]*/;|--->;g;s;--->|; |;g' > ~/Desktop/Tree.txt

Create a spreadsheet of Finder folder structure

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.