scitacean.typing.Uploader#
- class scitacean.typing.Uploader(*args, **kwargs)[source]#
Handler for file uploads.
Constructors
__init__
(*args, **kwargs)Methods
connect_for_upload
(dataset)Open a connection to the file server.
source_folder_for
(dataset)Files are uploaded to this directory / location.
- __init__(*args, **kwargs)#
- connect_for_upload(dataset)[source]#
Open a connection to the file server.
- Parameters:
dataset (
Dataset
) – Dataset whose files will be uploaded.- Returns:
AbstractContextManager
[UploadConnection
] – A connection object that can upload files.
- source_folder_for(dataset)[source]#
Files are uploaded to this directory / location.
This method may derive the source_folder from the given dataset or override it entirely and specify its own.
- Parameters:
dataset (
Dataset
) – Determine the source folder for this dataset.- Returns:
RemotePath
– The source folder fordataset
.