This file contains 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 python | |
import os | |
import sys | |
# print_compact_dir recursively prints the contents of the directory with indentation and without stuttering. | |
# If the only contents of a given directory are another single directory, that single directory is concatenated instead of indented on the next line. | |
def print_compact_dir(root, route, level, spacing=4): | |
dir_path = os.path.join(root, route) | |
contents = os.listdir(dir_path) |
This file contains 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 python | |
import os | |
import random | |
import time | |
import platform | |
snowflakes = {} | |
try: | |
# Windows Support |