Stage.upload_file(local_path: str | PathLike[str] | TextIO | BinaryIO, stage_path: str | PathLike[str], *, overwrite: bool = False) StageObject

Upload a local file.

  • local_path (Path or str or file-like) – Path to the local file or an open file object

  • stage_path (Path or str) – Path to the stage file

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