https://github.com/sb-viktor/dtv
cli directory tree viewer
https://github.com/sb-viktor/dtv
cli python script
Last synced: 10 months ago
JSON representation
cli directory tree viewer
- Host: GitHub
- URL: https://github.com/sb-viktor/dtv
- Owner: sb-viktor
- License: unlicense
- Created: 2025-04-01T07:04:31.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-04-01T08:10:57.000Z (10 months ago)
- Last Synced: 2025-04-01T08:27:09.745Z (10 months ago)
- Topics: cli, python, script
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# directory tree viewer
A simple Python script to display the directory tree structure in the terminal
## Features
- Displays folder and file structure in a tree format.
- Option to show only folders or include files.
- Handles errors gracefully (e.g., inaccessible directories).
## Usage
when running the script, set the folder and `-f` if you want to see along with the files
```bash
C:\My Projects\dtv> dtv "C:\My Projects\dtv"
Directory tree for 'C:\My Projects\dtv':
├── .git
│ ├── hooks
│ ├── info
│ ├── logs
│ │ └── refs
│ │ ├── heads
│ │ └── remotes
│ │ └── origin
│ ├── objects
│ │ ├── 06
│ │ ├── ef
│ │ ├── info
│ │ └── pack
│ └── refs
│ ├── heads
│ ├── remotes
│ │ └── origin
│ └── tags
└── .idea
├── dictionaries
└── inspectionProfiles
```