bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#6363: dired-create-directory doesn't say anything if directory alrea


From: Juri Linkov
Subject: bug#6363: dired-create-directory doesn't say anything if directory already exists
Date: Mon, 07 Jun 2010 21:12:35 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu)

>>> Try this, oh five times.
>>> (dired-create-directory "/media/")
>>> Yup, if the directory already exists, there is no error. Nothing.
>
> SM> Why is that a problem?
>
> Because it is an interactive command.
> One wants proper
>
> $ mkdir /media/
> mkdir: cannot create directory `/media/': File exists
>
> interactive feedback.
>
> If you want -p style action, add an option and document it.

Maybe the problem is that `make-directory' doesn't signal an error
when PARENTS is set?  The docstring of `make-directory' says:

  If DIR already exists as a directory, signal an error, unless PARENTS is set.

And `dired-create-directory' calls `make-directory' with PARENTS=t.

-- 
Juri Linkov
http://www.jurta.org/emacs/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]