Print

Print


@adriansev : I pushed today: 769182ca3b9a5e8968251326ec7bfe2417c3e98b 7c5e272cab6ae3e23e2988fc48f6eb038966a840 eb0e7bea766cf4941f4439e31832a0cc3949a92d

this should allow you to use the checksum present in a metalink while extracting a file from ZIP archive.

From comandline (assuming `file.meta4` points to a ZIP archive containing `file.txt` and a `md5` checksum for the file):
- `xrdcp --cksum md5 -f --zip=file.txt --zip-mtln-cksum  file.meta4 .`
or with an envar
- `XRD_ZIPMTLNCKSUM=1 xrdcp --cksum md5 -f --zip=file.txt file.meta4 .`

You can also enable the functionality from Python by setting `ZipMtlnCksum` in the environment, e.g.:
`EnvPutInt( 'ZipMtlnCksum', 1 )`
for more details see: https://github.com/xrootd/xrootd/blob/master/bindings/python/libs/client/env.py#L41

Could you give it a try?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1172#issuecomment-608556701

########################################################################
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