def needs_path(f):
    """Wraps a function that accepts path-like to give it a pathlib.Path"""
    @wraps(f)
    def wrapped(pathlike, *args, **kwargs):
        path = pathlib.Path(pathlike)
        return f(path, *args, **kwargs)
    return wrapped
Wraps a function that accepts path-like to give it a pathlib.Path