Merge branch 'main' of https://github.com/taylorwilsdon/google_workspace_mcp into fastmcp_v3
This commit is contained in:
@@ -102,7 +102,7 @@ class AttachmentStorage:
|
||||
# Save file with restrictive permissions (sensitive email/drive content)
|
||||
file_path = STORAGE_DIR / save_name
|
||||
try:
|
||||
fd = os.open(file_path, os.O_WRONLY | os.O_CREAT | os.O_TRUNC, 0o600)
|
||||
fd = os.open(file_path, os.O_WRONLY | os.O_CREAT | os.O_TRUNC | getattr(os, 'O_BINARY', 0), 0o600)
|
||||
try:
|
||||
total_written = 0
|
||||
data_len = len(file_bytes)
|
||||
|
||||
Reference in New Issue
Block a user