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

Home » Public Forums » archive » Re: How to test for the existance of a director
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: How to test for the existance of a director [message #2729] Mon, 29 August 1994 06:44
kump is currently offline  kump
Messages: 9
Registered: January 1994
Junior Member
In article fm5@cobra.aer.com, gallery@aer.com (William O. Gallery) writes:
> Does anyone know how to test for the existance of a directory (empty or not)?
>
>
>
> --
> William O. Gallery gallery@aer.com
> Atmospheric & Environmental Research Voice(617) 349-2284
> 840 Memorial Drive (617) 547-6207
> Cambridge, Massachusetts 02139 FAX (617) 661-6479


In UNIX environment (Sun sparc, sunos):

x='/users/kump/idl_data/goodstuff'
;I am testing for directory goodstuff'
as=findfile(x)
if as(0) eq '' then found=0 else found=1


---

Ken Kump

Biomedical Image Processing Laboratory
Department of Biomedical Engineering
Case Western Reserve University
Cleveland, Ohio 44106, USA

E-mail: kump@morph.ebme.cwru.edu
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: How to test for the existance of a directory
Next Topic: Re: ERDAS format conversion

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

Current Time: Wed Oct 08 19:16:12 PDT 2025

Total time taken to generate the page: 0.00480 seconds