From: Eli Zaretskii <eliz@gnu.org>
To: Kaushal <kaushal.modi@gmail.com>
Cc: 19963-done@debbugs.gnu.org
Subject: bug#19963: 25.0.50; Unable to create a directory with name same as an existing file
Date: Fri, 27 Feb 2015 23:48:59 +0200 [thread overview]
Message-ID: <83vbin3u0k.fsf@gnu.org> (raw)
In-Reply-To: <CAFyQvY3B_K3UF3ut+qAAVRJ9tWumQortt21oXM9_DsfWfutheQ@mail.gmail.com>
> From: Kaushal <kaushal.modi@gmail.com>
> Date: Fri, 27 Feb 2015 19:56:30 +0000
>
> If a folder has a file "a.b", I can't create a folder named "a.b" in the same
> parent folder.
As expected.
> Unix allows have a file and a directory with the same name in the same parent
> folder.
Not here, it doesn't:
eliz@fencepost:~/ttttttt$ touch a.b
eliz@fencepost:~/ttttttt$ ls
a.b
eliz@fencepost:~/ttttttt$ mkdir a.b
mkdir: cannot create directory `a.b': File exists
eliz@fencepost:~/ttttttt$
A directory is just a special kind of file on most filesystems, and
like a file, it has an entry in its parent directory. So there cannot
be a file and a directory with the same name, because there can be 2
identical entries in their parent directory.
This is not a bug in Emacs, this is a limitation of the underlying
filesystem to which Emacs heeds.
I'm closing this bug.
next prev parent reply other threads:[~2015-02-27 21:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-27 19:56 bug#19963: 25.0.50; Unable to create a directory with name same as an existing file Kaushal
2015-02-27 21:48 ` Eli Zaretskii [this message]
2015-02-27 21:50 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83vbin3u0k.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=19963-done@debbugs.gnu.org \
--cc=kaushal.modi@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.