Utils

Contains utility functions

tree

 tree (dir_path:pathlib.Path, level:int=-1,
       limit_to_directories:bool=False, length_limit:int=1000)

Given a directory Path object print a visual tree structure

Type Default Details
dir_path Path path of the directory
level int -1 level of folders to scrape
limit_to_directories bool False flag to either list or scrape folders
length_limit int 1000 length of the total output
Returns None
tree('.')

├── .gitignore
├── .quarto
│   ├── crossref
│   │   ├── index.ipynb
│   │   │   ├── index.html.json
│   │   │   └── README.md.json
│   │   └── 00_core.ipynb
│   │       └── core.html.json
│   ├── idx
│   │   ├── 00_core.ipynb.json
│   │   └── index.ipynb.json
│   └── preview
│       └── lock
├── docs
│   ├── search.json
│   ├── site_libs
│   │   ├── bootstrap
│   │   │   ├── bootstrap-icons.css
│   │   │   ├── bootstrap.min.js
│   │   │   ├── bootstrap.min.css
│   │   │   └── bootstrap-icons.woff
│   │   ├── quarto-html
│   │   │   ├── quarto.js
│   │   │   ├── tippy.umd.min.js
│   │   │   ├── popper.min.js
│   │   │   ├── quarto-syntax-highlighting.css
│   │   │   ├── anchor.min.js
│   │   │   └── tippy.css
│   │   ├── clipboard
│   │   │   └── clipboard.min.js
│   │   ├── quarto-search
│   │   │   ├── quarto-search.js
│   │   │   ├── fuse.min.js
│   │   │   └── autocomplete.umd.js
│   │   └── quarto-nav
│   │       ├── quarto-nav.js
│   │       └── headroom.min.js
│   ├── core.html
│   └── index.html
├── sidebar.yml
├── .ipynb_checkpoints
│   └── 01_utils-checkpoint.ipynb
├── index.ipynb
├── 01_utils.ipynb
├── 00_core.ipynb
└── _quarto.yml

14 directories, 32 files