from pathlib import Path


def find_level(filepath: Path, root: Path) -> int:
    """Dizin seviyesini bulma

    Arguments:
        root {Path} -- Dizin yolu
        startpath {Path} -- Ana dizin yolu

    Returns:
        int -- Derinlik seviyesi

    Examples:
        >>> find_level(Path("./Documents/Configuration"), Path("."))
        2
    """

    filepath = filepath.relative_to(root)
    level = len(filepath.parts)
    return level