Subject: Re: bug#19963: 25.0.50; Unable to create a directory with name same as an existing file

From: Eli Zaretskii <[email-masked]>
Date: Fri, 27 Feb 2015 23:48:59 +0200

> From: Kaushal <[email-masked]>
> 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.