Copy a path, and a folder's tree as text
Copy the path of items in the form you need (plain, with ~, escaped for Terminal, file URL, name, server path, sftp://), or a whole folder drawn as a text tree.
The Mac App Store edition is coming soon. The website edition has everything. Compare the editions
Copy the path
Select one or more items and choose Edit › Copy Path (⌥⌘C), like the Finder's Copy as Pathname. With several items, you get one path per line. With nothing selected, you get the path of the folder the pane shows.
Copy the path in another form
Edit › Copy Path As and the context menu's Copy Path submenu offer every form:
| Choice | What you get, for a file report.pdf in Documents |
|---|---|
| Path (context menu) | /Users/alex/Documents/report.pdf |
| Path with ~ | ~/Documents/report.pdf |
| Path for Terminal (Escaped) | '/Users/alex/Documents/report.pdf', ready to paste after a command; several items go on one line, separated by spaces |
| File URL | file:///Users/alex/Documents/report.pdf |
| Name | report.pdf |
| Enclosing Folder | /Users/alex/Documents |
| Path on the Server | for an item on a server you connected to with Folia Files: its path on the server, not the local mount point |
| sftp:// Address | for an item of an SFTP connection: sftp://user@host:port/path |
Copy a folder's tree as text
To paste the contents of a folder into an email, a ticket or a document, as the tree command draws it:
Project
├── Docs
│ └── brief.pdf
└── notes.txt
- Select a folder (or nothing, for the folder the pane shows).
- Right-click and choose Folder Tree as Text › Copy as Text, or Save as .txt to write it into a text file named "Project tree.txt" next to the folder. Both are also in File › More Actions › Folder Tree as Text.
How the tree is made:
- folders first, then the other items, each group sorted by name as the Finder sorts;
- hidden items only when the pane shows hidden files;
- an app, a Pages document or a photo library counts as one item: Folia Files doesn't go inside;
- symbolic links are listed, never followed;
- it stops at 20,000 lines (a whole disk would be endless), and says so at the end.
It runs as an operation: a very big folder shows its progress in Operations, where you can stop it. A saved file can be undone with ⌘Z.