Skip to content

Commit

Permalink
Create attachment directories with 0755 permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Oct 10, 2024
1 parent 54ba08b commit 07078c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/attachments_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def save_attachment(self, dataset, file, fields):

# create target dir
target_dir = os.path.dirname(target_path)
os.makedirs(target_dir, 0o750, True)
os.makedirs(target_dir, 0o755, True)

# save attachment file
file.save(target_path)
Expand Down

0 comments on commit 07078c3

Please sign in to comment.