Skip to content

Instantly share code, notes, and snippets.

View DSep's full-sized avatar
🛰️

Sepand Dyanatkar DSep

🛰️
View GitHub Profile
@DSep
DSep / s3tree.py
Last active September 30, 2025 15:59
Display a tree for a given s3 path
#!/usr/bin/env python3
"""
Prints a tree showing the structure of an S3 prefix.
This is meant to give me an overview of what's in a prefix, not
a complete listing. Here's an example of what the output looks like:
.
└─ digitised/
└─ b12840889/
└─ v1/
├─ bag-info.txt