Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Feb 2002 16:57:29 -0800
From:      Gregory Neil Shapiro <gshapiro@FreeBSD.ORG>
To:        Steve Ames <steve@virtual-voodoo.com>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: mkdir glitch?
Message-ID:  <15485.32889.596643.502952@horsey.gshapiro.net>
In-Reply-To: <200202280054.g1S0seWT013420@virtual-voodoo.com>
References:  <200202280054.g1S0seWT013420@virtual-voodoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
steve> Am I being obtuse here?

steve> saiya# mkdir -p /usr/local/www/cgi-bin.default/sqwebmail
steve> mkdir: /usr/local/www/cgi-bin.default/sqwebmail: File exists

steve> I thought the '-p' option would not return an error if the
steve> directory already exists?

Are you sure sqwebmail isn't a file?  Keep in mind the error is *file*
exists, not directory.

/home/gshapiro> ls -lagd /home/gshapiro/Work /home/gshapiro/Work/todo
drwx-----x  2 gshapiro  gshapiro  512 Feb 27 10:43 /home/gshapiro/Work
-rw-r--r--  1 gshapiro  gshapiro  163 Feb 24 10:45 /home/gshapiro/Work/todo
/home/gshapiro> mkdir -p /home/gshapiro/Work
/home/gshapiro> mkdir -p /home/gshapiro/Work/todo
mkdir: /home/gshapiro/Work/todo: File exists

Looks to me like it is doing the right thing.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15485.32889.596643.502952>