perago.WorkspaceDownloadFile#
- class perago.WorkspaceDownloadFile(object_path, local_path)[源代码]#
Remote object that should be downloaded into an attempt workspace.
WorkspaceDownloadFileis produced from the object listing for a workspace input ref. The destination path always points under the attempt-local workspace directory.- Parameters:
- object_pathstr
LakeFS object path selected from the input workspace ref.
- local_pathpathlib.Path
Destination path under the attempt-local workspace root after removing the task's
WorkspaceSpec.prefix.
- 参数:
参见
workspace_download_filesBuild download records from LakeFS object paths.
workspace_local_pathConvert a remote object path to a local path.
Notes
Objects outside the task prefix are not represented by this class because they are filtered before the download plan is returned.
Examples
>>> record = WorkspaceDownloadFile("audio/render/raw/input.wav", Path("raw/input.wav")) >>> record.local_path PosixPath('raw/input.wav')
Methods
__init__(object_path, local_path)Initialize a workspace download record.
Attributes
object_pathlocal_path