def return_pathlib(func):

    @wraps(func)
    def wrapper(self, path, *args, **kwargs):
        from drfs.path import aspath
        res = func(self, path, *args, **kwargs)
        as_path = aspath(res)
        return as_path
    return wrapper
def return_pathlib(func):

    @wraps(func)
    def wrapper(self, path, *args, **kwargs):
        from drfs.path import aspath
        res = func(self, path, *args, **kwargs)
        as_path = aspath(res)
        return as_path
    return wrapper