[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#34338: 26.1; delete-file return codes and failures
From: |
Eli Zaretskii |
Subject: |
bug#34338: 26.1; delete-file return codes and failures |
Date: |
Thu, 31 Oct 2019 16:32:13 +0200 |
> Date: Wed, 30 Oct 2019 21:33:29 -0400
> From: Boruch Baum <boruch_baum@gmx.com>
> Cc: Eli Zaretskii <eliz@gnu.org>, 34338@debbugs.gnu.org
>
> > Do you have a use-case in mind here? Can't the caller just check using
> > 'file-exists-p' if it matters instead?
>
> It _should_ *always* matter. Did you delete the file or not? If it didn't
> matter, why waste your time attempting the deletion?
The current implementation basically is a moral equivalent of "rm -f".
It also is biased towards interactive usage, where the return value is
not very important.
Does it answer your question?