Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/yjg30737/python-file-structure-ascii-tree-manager

convert directory tree into ASCII tree string
https://github.com/yjg30737/python-file-structure-ascii-tree-manager

ascii-convert ascii-tree asciitree file-structure-ascii-tree python python3

Last synced: 6 days ago
JSON representation

convert directory tree into ASCII tree string

Awesome Lists containing this project

README

        

# python-file-structure-ascii-tree-manager
convert directory tree into ASCII tree string

## Method Overview
`getTree(start_path, sub_file_prefix, sub_dir_indent, start_pos_char)`

## Usage
Code Sample
```python
getTree('my-react-app', '├─', '─', '│')
```

Print result
```
my-react-app/
│ ├─.gitignore
│ ├─package-lock.json
│ ├─package.json
│ ├─README.md
├─node_modules/
│ ├─.package-lock.json
├──.bin/
│ ├─acorn
│ ├─acorn.cmd
│ ├─acorn.ps1
│ ├─ansi-html
│ ├─ansi-html.cmd
│ ├─ansi-html.ps1
│ ├─autoprefixer
│ ├─autoprefixer.cmd
│ ├─autoprefixer.ps1
│ ├─browserslist
│ ├─browserslist-lint
│ ├─browserslist-lint.cmd
│ ├─browserslist-lint.ps1
│ ├─browserslist.cmd
│ ├─browserslist.ps1
│ ├─css-blank-pseudo
...
```