GNU bug report logs -
#19963
25.0.50; Unable to create a directory with name same as an existing file
Previous Next
Reported by: Kaushal <kaushal.modi <at> gmail.com>
Date: Fri, 27 Feb 2015 19:57:02 UTC
Severity: normal
Tags: notabug
Found in version 25.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #10 received at 19963-done <at> debbugs.gnu.org (full text, mbox):
> From: Kaushal <kaushal.modi <at> 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 <at> fencepost:~/ttttttt$ touch a.b
eliz <at> fencepost:~/ttttttt$ ls
a.b
eliz <at> fencepost:~/ttttttt$ mkdir a.b
mkdir: cannot create directory `a.b': File exists
eliz <at> 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.
This bug report was last modified 10 years and 105 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.