Skip to content

Commit 377dabc

Browse files
author
Samuel Moors
committed
use puppet style; update copyright
1 parent c5db2b5 commit 377dabc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

easybuild/easyblocks/generic/dataset.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
##
2-
# Copyright 2009-2023 Ghent University
2+
# Copyright 2009-2025 Ghent University
33
#
44
# This file is part of EasyBuild,
55
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
@@ -80,8 +80,11 @@ def post_processing_step(self):
8080

8181
for datafile in datafiles:
8282
cks = compute_checksum(datafile, checksum_type='sha256')
83-
objstor_file = os.path.join(
84-
object_storage, cks[0], cks[1], cks[2], cks[3], cks[4], cks[5], cks[6], cks[7], cks[8:])
83+
# using puppet-style object store, for example this checksum:
84+
# 00b68cbca8fe75a121e857359191f481d2e1262ce7c9998e9980fdb35c144733
85+
# is stored at:
86+
# 0/0/b/6/8/c/b/c/00b68cbca8fe75a121e857359191f481d2e1262ce7c9998e9980fdb35c144733
87+
objstor_file = os.path.join(object_storage, os.sep.join(list(cks[:8])), cks)
8588
mkdir(os.path.dirname(objstor_file), parents=True)
8689
if is_readable(objstor_file):
8790
remove_file(datafile)

0 commit comments

Comments
 (0)