Subject: Re: bug#58721: 28.2; dired with delete-by-moving-to-trash can't trash directory twice

From: Eli Zaretskii <[email-masked]>
Date: Thu, 27 Oct 2022 20:30:42 +0300

> From: Gustavo Barros <[email-masked]>
> Date: Thu, 27 Oct 2022 14:07:21 -0300
> Cc: [email-masked]
> 
> Debugger entered--Lisp error: (file-already-exists "File exists"
> "/home/<username>/.local/share/Trash/files/org-mode83g...")
>   make-directory-internal("/home/<username>/.local/share/Trash/files/org-mode83g...")

And the directory by that name really already exists under Trash?
That would mean something is wrong with make-temp-file on your system,
because it's supposed to return a different file name.  You will see
that move-file-to-trash calls make-temp-file near its end.

(I cannot myself try reproducing this because I don't have access to a
system with freedesktop.org-style Trash.)

Thanks.