This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |