This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

mkdir -p and network drives


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]