def get_subdirectories(path):
    """
    Gets list of all directories contained within path recursively
    (including root)

    :param Path path: path to search
    """
    return list(path.rglob('./'))