Linux installation:

sudo apt  install tree  # version 2.3.1-1

For use with Obsidian vault inside the desired Vault:

tree -P '*.md' --prune -I '.obsidian|.git|.trash' > vault-structure.txt