scitacean.typing.UploadConnection#

class scitacean.typing.UploadConnection(*args, **kwargs)[source]#

An open connection to the file server for uploads.

Constructors

__init__(*args, **kwargs)

Methods

revert_upload(*files)

Delete files uploaded by upload_file.

upload_files(*files)

Upload files to the file server.

__init__(*args, **kwargs)#
revert_upload(*files)[source]#

Delete files uploaded by upload_file.

Only files uploaded by the same connection object may be handled.

Parameters:

files (File) – Specify which files to delete.

Return type:

None

upload_files(*files)[source]#

Upload files to the file server.

Parameters:

files (File) – Specify which files to upload including local and remote paths.

Returns:

list[File] – Updated files with added remote parameters. For each returned file, both file.is_on_remote and file.is_on_local are true.