singlestoredb.management.workspace.StageObject.download

StageObject.download(local_path: str | PathLike[str] | None = None, *, overwrite: bool = False, encoding: str | None = None) bytes | str | None

Download the content of a file path.

Parameters:
  • local_path (Path or str) – Path to local file target location

  • overwrite (bool, optional) – Should an existing file be overwritten if it exists?

  • encoding (str, optional) – Encoding used to convert the resulting data

Return type:

bytes or str or None