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

Home » Public Forums » archive » Re: FILE_DIRNAME question
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: FILE_DIRNAME question [message #45605 is a reply to message #45602] Mon, 19 September 2005 16:44 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <pan.2005.09.19.21.24.55.124175@as.arizona.edu>,
JD Smith <jdsmith@as.arizona.edu> wrote:

> On Mon, 19 Sep 2005 12:43:02 -0500, Kenneth Bowman wrote:
>
>> Can anyone explain what I am doing wrong here?
>>
>> IDL> print, FILE_DIRNAME(['top', 'middle'], /MARK)
>> ./ ./
>> IDL> print, FILE_DIRNAME('/top/middle/', /MARK)
>> /top/
>
> Ummm, nothing? The first one has two relative file names, so their
> directory is the current directory, aka ".", or "./" when you are
> using /MARK. Maybe you meant:
>
> IDL> print, filepath(ROOT='top','middle')
> top/middle
>
> JD

Ah well, I have never have been able to make sense of the documentation
for most of the FILE_ routines. I thought FILEPATH was obsolescent,
like FINDFILE. I guess it was the consistent procedure naming
convention that threw me. ;-)

So, how does everyone assemble a platform-independent path from an array
of directory names?

Ken
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Container/Holder Destruction
Next Topic: wildcard in "where" command

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

Current Time: Fri Oct 10 10:36:00 PDT 2025

Total time taken to generate the page: 1.11991 seconds