You are viewing documentation about an older version (1.2.0). View latest version

snowflake.snowpark.FileOperation

class snowflake.snowpark.FileOperation(session: Session)[source]

Bases: object

Provides methods for working on files in a stage. To access an object of this class, use Session.file.

Methods

get(stage_location, target_directory, *[, ...])

Downloads the specified files from a path in a stage to a local directory.

get_stream(stage_location, *[, parallel, ...])

Downloads the specified files from a path in a stage and expose it through a stream.

put(local_file_name, stage_location, *[, ...])

Uploads local files to the stage.

put_stream(input_stream, stage_location, *)

Uploads local files to the stage via a file stream.