xrdcp

pilot.copytool.xrdcp._resolve_checksum_option(setup, **kwargs)[source]
pilot.copytool.xrdcp._stagefile(coption, source, destination, filesize, is_stagein, setup=None, **kwargs)[source]

Stage the file (stagein or stageout) :return: destination file details (checksum, checksum_type) in case of success, throw exception in case of failure :raise: PilotException in case of controlled error

pilot.copytool.xrdcp.copy_in(files, **kwargs)[source]

Download given files using xrdcp command.

Parameters:

files – list of FileSpec objects

Raise:

PilotException in case of controlled error

pilot.copytool.xrdcp.copy_out(files, **kwargs)[source]

Upload given files using xrdcp command.

Parameters:

files – list of FileSpec objects

Raise:

PilotException in case of controlled error

pilot.copytool.xrdcp.get_file_info_from_output(output)[source]

Extract file size, checksum value from xrdcp –chksum command output

Returns:

(filesize [int/None], checksum, checksum_type) or (None, None, None) in case of failure

pilot.copytool.xrdcp.is_valid_for_copy_in(files)[source]
pilot.copytool.xrdcp.is_valid_for_copy_out(files)[source]