Open cforce opened 1 month ago
Seems like you already made this change - want to try to open a PR?
yes but still there is a bug or even the original code has this already. My final goal is that the files are added in datalake same like on local storage . Each directory in json shall be searched an looked up in local basedir and the all files uploaded to the same datalake directory shall get the assigned group like configured in json.
However uploaded the files still miss the "acl rights" (found on the directory properly) . It seem like the code never could have worked
```
logger.info("Setting access control...")
for directory, access_control in self.data_access_control_format["directories"].items():
directory_client = directories[directory]
if "groups" in access_control:
for group_name in access_control["groups"]:
if group_name not in groups:
logger.error(
f"Directory {directory} has unknown group {group_name} in access control list, exiting"
)
return
await directory_client.update_access_control_recursive(
acl=f"group:{groups[group_name]}:r-x"
)
if "oids" in access_control:
for oid in access_control["oids"]:
await directory_client.update_access_control_recursive(acl=f"user:{oid}:r-x")
fixed and added md5 check/skip upload and as well writing some blob meta (md5, touch date, category) along blob
with "--scandirs" scan all directories recursively and add the files to the same directory, without the need to list in files section
new code
all: