Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/yjg30737/python-file-structure-ascii-tree-manager
- Owner: yjg30737
- License: mit
- Created: 2022-12-03T08:06:32.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-03T08:25:32.000Z (almost 2 years ago)
- Last Synced: 2023-03-04T22:18:02.809Z (over 1 year ago)
- Topics: ascii-convert, ascii-tree, asciitree, file-structure-ascii-tree, python, python3
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
...
```