mkdir -p and network drives

Pierre A. Humblet Pierre.Humblet@ieee.org
Tue May 3 03:21:00 GMT 2005


According to the Cygwin Faq,

*********
Why doesn't `mkdir -p' work on a network share?
Unfortunately, you cannot do something like this: 

bash$ mkdir -p //MACHINE/Share/path/to/new/dir
mkdir: cannot create directory `//MACHINE': No such file or directory

This is because mkdir checks for the existence of each directory on the path,
creating them as necessary. Since `//MACHINE' is not a directory (you can't cd
to it either), mkdir tries to create it, and fails. 
**********

This behavior would be fine with me, but the latest mkdir (GNU coreutils)
5.3.0
creates /MACHINE/Share/path/to/new/dir and returns 0

Pierre




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list