Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!proxad.net!feeder1-2.proxad.net!cleanfeed2-a.proxad.net!nnrp4-2.free.fr!not-for-mail From: "John Williams (News)" Subject: Re: Testing for the presence of a file Newsgroups: comp.sys.acorn.programmer Date: Tue, 09 Oct 2018 23:59:15 +0100 Message-ID: <5744813e2fUCEbin@tiscali.co.uk> References: <70cfbe4357.graham@graham.durain.uk> <5743ca65b9UCEbin@tiscali.co.uk> <9701324457.graham@graham.durain.uk> User-Agent: Pluto/3.16 (RISC OS/5.25) NewsHound/v1.52-32 Organization: League of Underpaid, Overworked, Undervalued, and Overwhelmed X-Disclaimer: I reserve the right to be wrong! Reply-To: UCEbin@tiscali.co.uk Lines: 30 NNTP-Posting-Date: 10 Oct 2018 00:59:21 CEST NNTP-Posting-Host: 81.152.122.76 X-Trace: 1539125961 news-3.free.fr 11061 81.152.122.76:59625 X-Complaints-To: abuse@proxad.net Xref: csiph.com comp.sys.acorn.programmer:5557 In article <9701324457.graham@graham.durain.uk>, Graham Pickles wrote: > > : > > DEF FN_objectpresent(fullpath$) > > SYS"OS_File",23,fullpath$ TO present%,,,,,,objftype% > > =present% > > REM case present% of 0=absent 1=file 2=directory 3=image file > > : > > > >I use it quite a lot! > > > >John > > > Many thanks. Of course. You reminded me. This is the method I have > adopted and it's ideal. Thanks, Graham - it's not often I'm the chosen one! But, to be fair, other contributions were equally good! It's just that this one lends itself to being in a library of goodies! Best wishes, John -- John Williams, now back in the UK - no attachments to these addresses! Non-RISC OS posters change user to johnrwilliams or put 'risc' in subject! Who is John Williams? http://petit.four.free.fr/picindex/author/