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