def is_parent_path(self, parent, trial):
    relpath = pathlib.PurePath(trial).relative_to(parent)
    return (relpath.parts[0] != '..')
def is_parent_path(self, parent, trial):
    relpath = pathlib.PurePath(trial).relative_to(parent)
    return (relpath.parts[0] != '..')