× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I hope I'm not stating the obvious, but I didn't see anyone else
mention.....

I believe, but cannot verify, that in QSH, you can do:
   if [ -f /some/file/name ]; then
    do something
   else
     do something else
   fi

I don't think you mention that this needs to be an API.

Dennis






"Al Barsa" <barsa@barsaconsulting.com>@midrange.com on 11/21/2002 10:28:30
AM

Please respond to midrange-l@midrange.com

Sent by:    midrange-l-admin@midrange.com


To:    midrange-l@midrange.com
cc:
Subject:    Re: Check file/dir existence



There is a TAA Tool called CHKIFSE that will do exactly what you want.

See:

http://www.taatool.com/document/L_chkifse.htm

Al

Al Barsa, Jr.
Barsa Consulting Group, LLC

400>390

914-251-1234
914-251-9406 fax

http://www.barsaconsulting.com
http://www.taatool.com






                      Dr Syd Nicholson
                      <sydnic@ccs400.com        To:
                      midrange-l@midrange.com
                      >                         cc:
                      Sent by:                  Subject:  Check file/dir
                      existence
                      midrange-l-admin@m
                      idrange.com


                      11/20/2002 09:38
                      PM
                      Please respond to
                      midrange-l






Is there an easy way for a program to determine if a file or directory
exists in the IFS?

In the QSYS.LIB file system we have CHKOBJ. But in the IFS I can't find
any reference to a function that will give me an easy answer. There seem
to be many APIs that use files and directories, but nothing that returns
an easy answer of 'Yes/No' for 'Does object exist?'

Many thanks in advance

Syd Nicholson






As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.