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

Home » Public Forums » archive » Re: fstat, file_info and file_test
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: fstat, file_info and file_test [message #35184 is a reply to message #35083] Fri, 16 May 2003 11:16 Go to previous messageGo to previous message
Richard Younger is currently offline  Richard Younger
Messages: 43
Registered: November 2000
Member
Ben Tupper wrote:
>
[...]
>
> Hi,
>
> OK, how about running through the possible LUNs (100-128) until a match
> is found. I like the cross-platforminess of your solution.
>
> FUNCTION File_IsOpen, filename
>
> COMPILE_OPT idl2
>
> For i = 100, 128 Do $
> If ( (Fstat(i)).NAME EQ File_Expand_Path(filename) ) Then Return, 1
>
> Return, 0
> END

Hi Ben

Been sick the last couple days, so I'm a tad late responding.

That certainly would shortcut things a bit. I'm brainwashed into the Cult of
the Array, but I suppose since the loop will actually run faster almost all
the time, I'll have to give some ground. :-) But isn't being able to do
WHERE(struc_array.name EQ filename) just plain cool?

By cutting out LUNs 0-99, you are trusting your users not to (foolishly)
manage their own LUNs. Only you can tell if that is a wise decision.

Best,
Rich

--
Richard Younger
younger@spaMIT.edu (with obvious modification)
Phone: (781)981-4464
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: replace array's elemets
Next Topic: new object from a save/restore doesn't execute init function

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

Current Time: Fri Oct 10 12:43:06 PDT 2025

Total time taken to generate the page: 2.15953 seconds