Subject: Re: bug#28792: 26.0.60; Deleting to a custom trash directory in Dired gives error

From: Andreas Schwab <[email-masked]>
Date: Thu, 12 Oct 2017 17:27:05 +0200

On Okt 12 2017, Kaushal Modi <[email-masked]> wrote:

> But it seems to work in some cases i.e. trashing a dir works*. See my
> recipe in my earlier message in this debbugs thread[1]. Somehow this error
> has a correlation with relative locations of the user-set trash dir and
> to-be-deleted dir..

That depend on whether the trash is on the same file system as the
directory to trash.  rename-file now refuses to copy directory across
file systems unless the target name ends in a slash.

Andreas.

-- 
Andreas Schwab, SUSE Labs, [email-masked]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."