You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bd53c37
Browse filesBrowse the repository at this point in the historyBrowse files
Handle permission errors gracefully, matching Linux tree behavior
Instead of crashing on inaccessible directories (e.g. "System Volume
Information" on Windows), show them with [error opening dir] like
Linux tree does. Fixes#41.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Lists the contents of directories in a tree-like format, similar to the Linux [`
4
4
5
5
`tree` is a command that produces a nicely-formatted indented output of directories and files. When a directory argument is given, tree lists all the files and/or directories found in the given directory.
6
6
7
-
Note: Symlinks are not followed.
7
+
Note: Symlinks are not followed. Directories that cannot be opened (e.g. due to permission errors) are listed with `[error opening dir]` instead of crashing, matching Linux `tree` behavior.
8
8
9
9
## Quickstart
10
10
@@ -130,6 +130,7 @@ type TreeJsonEntry =
130
130
// size: present when `sizes: true`
131
131
// mode: present when `permissions: true`
132
132
// time: present when `date: true`
133
+
// error: present when the directory could not be opened (e.g. permission denied)
0 commit comments