Skip to content
Snippets Groups Projects
Commit 088fd3d2 authored by Blake Fitch's avatar Blake Fitch
Browse files

add documentation of how to recreate irods sha2 format

parent 66abd535
No related branches found
No related merge requests found
...@@ -394,6 +394,8 @@ def confirmed_put( irods_sesh, file_pathname, new_obj_ipath, metadata_dict=None, ...@@ -394,6 +394,8 @@ def confirmed_put( irods_sesh, file_pathname, new_obj_ipath, metadata_dict=None,
+ " tmp ipath: " + new_obj_ipath_tmp ) + " tmp ipath: " + new_obj_ipath_tmp )
return None return None
# Example here: https://github.com/irods/python-irodsclient/blob/main/irods/test/helpers.py#L251
# ... in function: def compute_sha256_digest(file_path):
b64_digest256 = base64.b64encode(hash_digest256).decode() b64_digest256 = base64.b64encode(hash_digest256).decode()
new_obj_hash_256 = "sha2:{}".format(b64_digest256) new_obj_hash_256 = "sha2:{}".format(b64_digest256)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment