<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Sun, 09 Aug 2009 16:01:49 +0100
From   : philb@... (Phil Blundell)
Subject: Counting Directory Entries in L3 Econet

On Sun, 2009-08-02 at 12:58 +0100, Ian Wolstenholme wrote:
> Is there a call I can use to find out how many entries are in a
> directory on Level 3 Econet?  I need something which will save multiple
> files without encountering a Dir full error which can be left unsupervised.
> 
> So far I'm just counting the number of saves, but it's not foolproof because
> it is assuming that I am starting with an empty directory (which might not
> be the case) and also sometimes the same file is saved more than once.
> 
> What I really need is a way of finding out if the next save would cause an
> error before it executes the command.

Why do you need to be able to predict in advance if the next save would
cause an error?  Attempting to *SAVE (or OPENOUT, etc) into a full
directory is a non-destructive operation: you should be able to just
catch the error, move to a different directory, and retry the original
operation.

p.
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>