from pathlib import Path


def not_in_paths(fullname, paths_parts):
    """Check if file is in any of paths or subdir"""
    fullname_parts = Path(fullname).parts
    for path in paths_parts:
        if fullname_parts[:len(path)] == path:
            return False
    return True