"Delete files sitting in trash" permission errors in log

macOS Big Sur 11.4
Hazel 5.0.7
When I have the "Delete files sitting in the Trash" setting enabled, I receive the following errors every couple seconds. If I disable this setting, they go away of course.
My /Users/peter/.Trash folder has the following permissions:
drwx------ 2 peter staff 64 May 27 08:25 .Trash
The GoogleDrive volume trash has the following permissions:
drwx------ 3 peter staff 4096 May 26 14:20 .Trashes
I of course have no permission to view the .Trashes in the System Volumes
Hazel 5.0.7
When I have the "Delete files sitting in the Trash" setting enabled, I receive the following errors every couple seconds. If I disable this setting, they go away of course.
My /Users/peter/.Trash folder has the following permissions:
drwx------ 2 peter staff 64 May 27 08:25 .Trash
The GoogleDrive volume trash has the following permissions:
drwx------ 3 peter staff 4096 May 26 14:20 .Trashes
I of course have no permission to view the .Trashes in the System Volumes
- Code: Select all
2021-05-27 08:37:21.506 86Z3GCJ4MF.com.noodlesoft.HazelHelper[24323] Error connecting event stream. Could not get file descriptor for file /Users/peter/.Trash: Operation not permitted
2021-05-27 08:37:21.508 86Z3GCJ4MF.com.noodlesoft.HazelHelper[24323] Error connecting event stream. Could not get file descriptor for file /System/Volumes/Data/.Trashes/501: Operation not permitted
2021-05-27 08:37:21.509 86Z3GCJ4MF.com.noodlesoft.HazelHelper[24323] Error connecting event stream. Could not get file descriptor for file /System/Volumes/VM/.Trashes/501: Operation not permitted
2021-05-27 08:37:21.511 86Z3GCJ4MF.com.noodlesoft.HazelHelper[24323] Error connecting event stream. Could not get file descriptor for file /System/Volumes/Preboot/.Trashes/501: Operation not permitted
2021-05-27 08:37:21.512 86Z3GCJ4MF.com.noodlesoft.HazelHelper[24323] Error connecting event stream. Could not get file descriptor for file /System/Volumes/Update/.Trashes/501: Operation not permitted
2021-05-27 08:37:21.514 86Z3GCJ4MF.com.noodlesoft.HazelHelper[24323] Error connecting event stream. Could not get file descriptor for file /Volumes/GoogleDrive/.Trashes/501: Operation not permitted
2021-05-27 08:37:36.589 hazelworker[25394] Running worker (v5.0.7) for folder with identifier: trash.
2021-05-27 08:37:36.590 hazelworker[25394] ###main load address: 0x104ca6000
2021-05-27 08:37:36.590 hazelworker[25394] ###Hazel Core load address: 0x104cde000
2021-05-27 08:37:36.590 hazelworker[25394] ###Noodle load address: 0x104e00000
2021-05-27 08:37:36.590 hazelworker[25394] ###CK load address: 0x104db5000
2021-05-27 08:37:36.604 hazelworker[25394] Processing folder Trash
2021-05-27 08:37:37.675 hazelworker[25394] Received error while processing file /Users/peter/.Trash: Error Domain=NSCocoaErrorDomain Code=257 "The file “Trash” couldn’t be opened because you don’t have permission to view it." UserInfo={NSURL=file:///Users/peter/.Trash, NSFilePath=/Users/peter/.Trash, NSUnderlyingError=0x7fed0152aac0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
2021-05-27 08:37:37.678 hazelworker[25394] Received error while processing file /System/Volumes/Data/.Trashes/501: Error Domain=NSCocoaErrorDomain Code=257 "The file “501” couldn’t be opened because you don’t have permission to view it." UserInfo={NSURL=file:///System/Volumes/Data/.Trashes/501, NSFilePath=/System/Volumes/Data/.Trashes/501, NSUnderlyingError=0x7fed0151f060 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
2021-05-27 08:37:37.679 hazelworker[25394] Received error while processing file /System/Volumes/VM/.Trashes/501: Error Domain=NSCocoaErrorDomain Code=257 "The file “Trash” couldn’t be opened because you don’t have permission to view it." UserInfo={NSURL=file:///System/Volumes/VM/.Trashes/501, NSFilePath=/System/Volumes/VM/.Trashes/501, NSUnderlyingError=0x7fed0160e150 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
2021-05-27 08:37:37.681 hazelworker[25394] Received error while processing file /System/Volumes/Preboot/.Trashes/501: Error Domain=NSCocoaErrorDomain Code=257 "The file “Trash” couldn’t be opened because you don’t have permission to view it." UserInfo={NSURL=file:///System/Volumes/Preboot/.Trashes/501, NSFilePath=/System/Volumes/Preboot/.Trashes/501, NSUnderlyingError=0x7fed0300f940 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
2021-05-27 08:37:37.682 hazelworker[25394] Received error while processing file /System/Volumes/Update/.Trashes/501: Error Domain=NSCocoaErrorDomain Code=257 "The file “Trash” couldn’t be opened because you don’t have permission to view it." UserInfo={NSURL=file:///System/Volumes/Update/.Trashes/501, NSFilePath=/System/Volumes/Update/.Trashes/501, NSUnderlyingError=0x7fed0151c0e0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
2021-05-27 08:37:37.685 hazelworker[25394] Received error while processing file /Volumes/GoogleDrive/.Trashes/501: Error Domain=NSCocoaErrorDomain Code=257 "The file “Trash” couldn’t be opened because you don’t have permission to view it." UserInfo={NSURL=file:///Volumes/GoogleDrive/.Trashes/501, NSFilePath=/Volumes/GoogleDrive/.Trashes/501, NSUnderlyingError=0x7fed01610dd0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
2021-05-27 08:37:37.687 hazelworker[25394] Done processing folder Trash