Commit 56008890 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Added prefix-subdir on object file directories.

parent 117851ff
......@@ -158,6 +158,9 @@ class Objects:
else:
file_name = name
# add an extra directory to limit the files per directory (gpfs)
file_name = '%s/%s' % (file_name[0:3], file_name)
path_segments = file_name.split('/')
path = os.path.join(*([config.fs.objects, bucket] + path_segments))
directory = os.path.dirname(path)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment