Unable to overwrite file in Google Drive folder

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Unable to overwrite file in Google Drive folder Thu Feb 05, 2026 11:05 am • by jakesm
Hazel needs to replace/overwrite a file located in Google Drive and reports the below error. It has Full Disk Access on the Mac.

File needs to move and overwrite from ~/Downloads/XXXXX.csv to ~/Library/CloudStorage/GoogleDrive-USER/.../_Action/XXXXX.csv, but the problem arises when the old file in that folder needs to be moved to trash.

Running Tahoe 26.2 and Hazel 6.1.1. Any ideas to get around it? I wouldn't care if the old file isn't moved to trash and just gets overwritten,

********************

2026-02-01 11:04:22 hazelworker File XXXXX.csv: Rule matched
Error moving file from
~/Library/CloudStorage/GoogleDrive-USER/.../_Action/XXXXX.csv
to
~/Library/CloudStorage/GoogleDrive-USER/.Trash/XXXXX-1.csv

Error Domain=NSCocoaErrorDomain Code=513
"File couldn’t be moved because you don’t have permission to access '.Trash'."

NSUnderlyingError=NSPOSIXErrorDomain Code=1 "Operation not permitted"

Failed to recycle original file at source path.
Move failed: Could not throw away existing file at destination.

*****************
jakesm
 
Posts: 6
Joined: Mon Jun 02, 2014 7:40 am

What happens if you try to perform the action in Finder manually?
Mr_Noodle
Site Admin
 
Posts: 12135
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support