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]

Re: Question about mkdir and windows paths


On Wed, Mar 16, 2005 at 10:36:02AM -0800, Peter Rehley wrote:
>Hi,
>
>I'm using mkdir with a windows path, and it's not working the way I 
>expect.  When I type the following command
>
>mkdir -p C:\\Cygwin\\tmp\hello; # cygwin and tmp already exist
>
>the directory is created.
>
>If I try the following
>
>rm -rf C:\\Cygwin\\tmp\\hello
>mkdir -p C:\\Cygwin\\tmp\\hello\\goodbye
>
>I get
>mkdir : cannot create directory `C:\\MontaVista\\tmp\\hello\\goodbye': 
>No such file or directory
>
>Is this the except behavior of mkdir or is there a bug here?  I've 
>check the source and noticed that the make_path function only looks for 
>'/'

One of the primary goals of cygwin is to avoid the use of windows paths to
avoid the requirement of adding special code to programs like mkdir.

cgf

--
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]