Re: Windows paths in glob




Quoth Bart Lateur <bart.lateur@xxxxxxxxxx>:

Result:

C:/Documents and Settings C:/Documents and Settings 1
C:\Documents and Settings C:./Documents and Settings 1

Well, ok... the response of glob to a backslash *is* weird. But at
least, it seems to work.

Not just weird: wrong. Win32 has a notion of 'current directory on a
given drive'; C:./Documents and Settings is a path relative to the
current directory on drive C:.

Ben

.



Relevant Pages

  • Re: Ping Nick Hodges
    ... In article, Nick Hodges ... nothing about the state of attention paid to Win32 vs. .Net. ... but the lack of response to an answer to a question you put ...
    (borland.public.delphi.non-technical)
  • Re: Escape Character in directory path
    ... >the backslash to be escaped as shown in the code example on the msdn site: ... Place your response below the text you are ... It has nothing to do with FindFirst/Next. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Problem with retriving "" backslash
    ... Im having a problem with retriving "\" backslash, ... the response will contain some url like "\bank\index.htm". ... So what i have to do is, ill get those url and display them in ...
    (comp.lang.javascript)
  • Re: glob problem
    ... else has any other ways to do I would be interested in learning. ... glob() simulates Unix shell globbing. ... This means backslash is meta. ...
    (comp.lang.perl.misc)
  • Re: glob bug: unmatched open brace in file name
    ... But when glob errors out: ... (alternation), and that to have them literlly you must backslash them: ...
    (comp.lang.tcl)