def find_file_depth(line: str):
    """Find how deep in a hierarchy a file is by checking the tree"""
    for idx, item in enumerate(line):
        if item not in ['│', '├', '─', '└'] and not item.isspace():
            return idx // 4 - 1
    return -1
