singlestoredb.management.files.FileSpace.rename

FileSpace.rename(old_path: str | PathLike[str], new_path: str | PathLike[str], *, overwrite: bool = False) FilesObject

Move the file to a new location.

Parameters:
  • old_path (Path or str) – Original location of the path

  • new_path (Path or str) – New location of the path

  • overwrite (bool, optional) – Should the new_path be overwritten if it exists already?