An open API service indexing awesome lists of open source software.

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

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

```