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

Home » Public Forums » archive » Re: idl5.5 bug (relative path)
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: idl5.5 bug (relative path) [message #29198 is a reply to message #29195] Thu, 07 February 2002 03:33 Go to previous messageGo to previous message
Nigel Wade is currently offline  Nigel Wade
Messages: 286
Registered: March 1998
Senior Member
Reimar Bauer wrote:

> Hi,
>
> I have problems accessing data over a relative paths.
>
>
> $ ls ../../../../data/mo_output/modell_original_output/test.dat
> gives ../../../../data/mo_output/modell_original_output/test.dat
>
> print,file_test('../../../../data/mo_output/modell_original_ output/test.dat')
> 0
>
>
> Is there a work around known?
>
> Reimar

Unfortunately I can confirm this bug on Linux, IRIX and Solaris.
It goes wrong at the ../../.. stage (../.. is ok).

Can you use file_expand_path()? This seems to do relative paths ok.

E.g. on my system :

IDL> print,file_test('../../../../data/nmw')
0

IDL> print,file_test(file_expand_path('../../../../data')+'/nmw')
1

--
-----------------------------------------------------------
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523568, Fax : +44 (0)116 2523555
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: StrSplit wont port to Windows?
Next Topic: idl5.5 bug (relative path)

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

Current Time: Fri Oct 10 18:43:47 PDT 2025

Total time taken to generate the page: 0.79907 seconds