On Fri, 29 Aug 2014 02:21:58 +0100, Jeremy Nicoll - news posts
<
jn.nntp....@wingsandbeaks.org.uk> wrote:
>Jennifer Murphy <JenM...@jm.invalid> wrote:
>
>>In ooRexx, what's the best way to test whether a file exists?
>>
>>I found the Query Exists command of the Stream function,
>>
>> result=stream(fid,"c","query exists")
>>
>>It seems to do the job, but the description leaves me wondering if it's
>>the bext choice.
>>
>>In Quercus Rexx, I've been using DOSDir(). I don't see a good ooRexx
>>replacement for that function.
>
>Look at the utility functions, listed in a separate chapter from the
>standard rexx built-in functions, eg SysFileExists().
Thank you. I should have found that.
I see that there is a similar function: SysIsFile.
In trhe description for SysFileExists, it says: "Returns true if any
file system entity with the given name exists. In particular, this will
return true for both regular files and directories."
In any case, that statement is not present in the description for
SysIsFile. Based on a little testing, I fond that SysFileExists will
return "1" if it finds a directory, whereas SysIsFile does not.
Are there any other differences?
What other file system "entities" are there other than files and
directories?