On Okt 12 2017, Kaushal Modi <kaushal.modi@gmail.com> 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.
Kaushal Modi