Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 2.33 KB

pimlico.modules.utility.copy_file.rst

File metadata and controls

46 lines (34 loc) · 2.33 KB

Copy file

Path pimlico.modules.utility.copy_file
Executable yes

Copy a file

Simple utility for copying a file (which presumably comes from the output of another module) into a particular location. Useful for collecting together final output at the end of a pipeline.

Inputs

Name Type(s)
source list of File <pimlico.datatypes.files.File>

Outputs

Name Type(s)
documents ~pimlico.datatypes.tar.TarredCorpus

Options

Name Description Type
target_name Name to rename the target file to. If not given, it will have the same name as the source file. Ignored if there's more than one input file string
target_dir (required) string