Page 1 of 2

Hazel Rule Cannot Move Empty Folders to Trash Folder.

PostPosted: Fri Oct 11, 2024 11:36 am
by davidelloyd
I am having an issue with a rule. (See image).
Image

The rule isn't able to move an empty folder to the trash folder.
I am getting the following errors.
Image

Here's the Hazel log.
https://www.dropbox.com/scl/fi/hsexfeshc79mda4l0nab6/Hazel-Log-2024.10.08.16.25.txt?rlkey=4ppt0p1lwt0dru3k64il1axkd&st=897irusg&dl=0

Re: Hazel Rule Cannot Move Empty Folders to Trash Folder.

PostPosted: Mon Oct 14, 2024 8:51 am
by Mr_Noodle
Can you turn on debug logging as described here? https://www.noodlesoft.com/kb/hazel-debug-mode/

After that, post updated logs.

Re: Hazel Rule Cannot Move Empty Folders to Trash Folder.

PostPosted: Mon Oct 14, 2024 10:37 pm
by davidelloyd
I've uploaded a copy of the log with the debug feature on

CTRL+F (Search): "2024-10-14 22:24:45.561 hazelworker[88063] please delete this empty folder: Rule Delete Empty Folders matched"

https://www.dropbox.com/scl/fi/ox98xckmexf3jb70mdll1/2024.10.14-Hazel.txt?rlkey=ykcp9s4zuj3wldk6rbge0k2tu&st=9gcxu14q&dl=0

Re: Hazel Rule Cannot Move Empty Folders to Trash Folder.

PostPosted: Tue Oct 15, 2024 8:47 am
by Mr_Noodle
What version of macOS are you running? The error seems really weird. Are you able to move that file to the trash in Finder?

Re: Hazel Rule Cannot Move Empty Folders to Trash Folder.

PostPosted: Tue Oct 15, 2024 10:42 am
by davidelloyd
I'm running Sequoia 15.0.1.
I'm able to delete the file manually, also drag and drop it into the trash.

Re: Hazel Rule Cannot Move Empty Folders to Trash Folder.

PostPosted: Wed Oct 16, 2024 8:46 am
by Mr_Noodle
Does it prompt for a password when doing that? Do you have this issue with non Dropbox folders?

Re: Hazel Rule Cannot Move Empty Folders to Trash Folder.

PostPosted: Wed Oct 16, 2024 1:03 pm
by davidelloyd
I'm not getting a prompt for a password.
I moved the files and rules to non-Dropbox folders, and the rules worked.
This issue started a few weeks ago.
I would like to continue using Dropbox.

Re: Hazel Rule Cannot Move Empty Folders to Trash Folder.

PostPosted: Thu Oct 17, 2024 8:34 am
by Mr_Noodle
Can you run the following command in Terminal and post the results?

Code: Select all
ls -led ~/Library/CloudStorage/Dropbox/.Trash

Re: Hazel Rule Cannot Move Empty Folders to Trash Folder.

PostPosted: Thu Oct 17, 2024 9:53 am
by davidelloyd
The code returned the following:

Code: Select all
0: group:everyone deny delete

Re: Hazel Rule Cannot Move Empty Folders to Trash Folder.

PostPosted: Fri Oct 18, 2024 8:28 am
by Mr_Noodle
I think the first line of the output is missing.

Any chance your Dropbox is near it's size limit?

Re: Hazel Rule Cannot Move Empty Folders to Trash Folder.

PostPosted: Fri Oct 18, 2024 10:07 am
by davidelloyd
I have 3.5TB used of 4TB.

I have included a screenshot of Terminal that shows the return message.
https://www.dropbox.com/scl/fi/z8evcnpjuh4icc31283kc/2024-10-18-Screenshot-575x365.jpg?rlkey=3vpnoxg3io91gelwvrn253j7e&st=cyl9asyw&dl=0

Re: Hazel Rule Cannot Move Empty Folders to Trash Folder.

PostPosted: Mon Oct 21, 2024 9:27 am
by Mr_Noodle
Not seeing the screenshot. Can you repost it?

Re: Hazel Rule Cannot Move Empty Folders to Trash Folder.

PostPosted: Mon Oct 21, 2024 10:19 am
by davidelloyd
I've updated the link.

I have 3.5TB used of 4TB.

I have included a screenshot of Terminal that shows the return message.
https://www.dropbox.com/scl/fi/z8evcnpj ... 9asyw&dl=0

Re: Hazel Rule Cannot Move Empty Folders to Trash Folder.

PostPosted: Tue Oct 22, 2024 8:38 am
by Mr_Noodle
Can you run the same command on the folder you want to move to the trash?

Re: Hazel Rule Cannot Move Empty Folders to Trash Folder.

PostPosted: Wed Oct 23, 2024 12:22 am
by davidelloyd
I'm receiving an error from Terminal. Dropbox has parentheses in one of its folders (which I cannot rename), "Mac (2)", so Terminal returned an error. I thought I would be able to fix it by adding slashes, but that didn't work either.

I was able to get Terminal to point at the folder.

This is what Terminal returned when it worked.
Code: Select all
MacHD:forDeletion dj$ ls -led
drwxr-xr-x@ 2 dj  staff  64 Oct 23 00:09 .
MacHD:forDeletion dj$


This is when I tried the entire file pathname.
Code: Select all
MacHD:~ dj$ ls -led ~/Users/dj/Library/CloudStorage/Dropbox/Mac (2)/Downloads/for deletion
-bash: syntax error near unexpected token `('
MacHD:~ dj$ ls -led ~/Users/dj/Library/CloudStorage/Dropbox/Mac\ (2\)/Downloads/for deletion
-bash: syntax error near unexpected token `('
MacHD:~ dj$ ls -led ~/Users/dj/Library/CloudStorage/Dropbox/Mac/ (2/)/Downloads/for deletion
-bash: syntax error near unexpected token `('