@adriansev : I pushed today few commits that implement the functionality.
In xrdcp
there is a new option --rm-bad-cksum
that will make the client remove the target file if checksum verification fails (please not that this option enables POSC semantics).
You can also use the functionality from Python, e.g.:
from XRootD import client
process = client.CopyProcess()
process.add_job( source='/path/to/metalink.meta4',
target='/path/to',
force=True,
checksummode='end2end',
**checksumtype='auto'**,
rmBadCksum=True )
process.prepare()
process.run()
Please note the checksum
type is set to **auto**
, this is also a new functionality (that you asked for) that makes the client infer automatically the checksum type based on source/destination configuration, source file type (metalink, ZIP), and available checksum plug-ins.
Could you please give it a try?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Use REPLY-ALL to reply to list
To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1