comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: cd to nonexistent directory and up again
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: cd to nonexistent directory and up again [message #81707 is a reply to message #81704] Tue, 16 October 2012 04:42 Go to previous message
Lajos Foldy is currently offline  Lajos Foldy
Messages: 176
Registered: December 2011
Senior Member
On Tuesday, October 16, 2012 12:33:19 PM UTC+2, tom.gr...@gmail.com wrote:
> Why is it that this fails:
>
>
>
>
>
> IDL> cd, 'bobo/..'
>
> % CD: Unable to change current directory to bobo/...
>
> No such file or directory
>
>
>
> but this does not:
>
>
>
> IDL> cd, './bobo/..'
>
> IDL>
>
>
>
>
>
> I am using CD to determine whether a given path exists as a directory, and I was expecting the second case to fail just like the first one does, since there is no difference between them in my mind.
>
>
>
> Cheers,
>
>
>
> Tom

Both CD's are cd to the current directory, IDL or the underlying OS may optimize it away.

Use file_test('bobo', /dir) instead.

regards,
Lajos
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: About duration of run process
Next Topic: Re: Surface/shade_surf problem on IDL 7.1 / Lion OS ??

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 11:43:38 PDT 2025

Total time taken to generate the page: 0.48211 seconds