diff --git a/librarian_server/stores/local.py b/librarian_server/stores/local.py index 776516b..63ca237 100644 --- a/librarian_server/stores/local.py +++ b/librarian_server/stores/local.py @@ -79,8 +79,10 @@ def stage(self, file_size: int, file_name: Path) -> tuple[Path]: # Create the empty directory. resolved_path = self._resolved_path_staging(stage_path) + if self.group_write_after_stage: resolved_path.mkdir(mode=0o775) + os.chmod(resolved_path, 0o775) else: resolved_path.mkdir()