Skip to content

mecfs_bio.build_system.task.external_file_copy_task

Task to copy a file from an external source. Used to testing.

Classes:

ExternalFileCopyTask

Bases: GeneratingTask

Copies a file from an external source. Used for testing

Methods:

Attributes:

deps property

deps: list[Task]

external_path instance-attribute

external_path: Path

meta property

meta: SimpleFileMeta

execute

execute(
    scratch_dir: Path, fetch: Fetch, wf: WF
) -> FileAsset
Source code in mecfs_bio/build_system/task/external_file_copy_task.py
def execute(self, scratch_dir: Path, fetch: Fetch, wf: WF) -> FileAsset:
    target_path = scratch_dir / "target"
    shutil.copy(str(self.external_path), str(target_path))
    return FileAsset(target_path)