(139_spanish-voice-trainer) stephenlohning@Scotty 139_spanish-voice-trainer % uv run main.py
To trim non-relevant files from your directory tree (such as build artifacts, cache files, and non-source assets), you can configure flags for the `tree` command itself or use git-based filtering.
* **`-d` (Directories only):** Show only directory structures if file-level detail is unnecessary.
* **`-L level` (Limit depth):** Limit how deep `tree` traverses (e.g., `-L 2` or `-L 3`) to prevent showing deep PyInstaller distribution bundles like `dist/` or `build/`.
* **`--gitignore`:** Automatically respects your `.gitignore` rules (supported in modern `tree` versions).
---
**Recommended Command Patterns**
**1. Ignore standard build & cache artifacts**
```bash
tree -I "__pycache__|*.pyc|build|dist|*.app|*.iconset|*.png|*.pdf|*.jpg|database_legacy"
```
**2. Combine pattern filtering with limited depth**
```bash
tree -L 2 -I "__pycache__|build|dist|database_legacy"
```
**3. Use `.gitignore` directly**
If you already have build outputs, images, and backups ignored in `.gitignore`: