<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Sun, 02 Aug 2009 15:06:56 +0100
From   : bbcmailinglist@... (Ian Wolstenholme)
Subject: Counting Directory Entries in L3 Econet

I thought OSGBPB 8 was the most likely when I was looking at chapter 10
of the MDFS manual last night, but you would have to reserve 2.5 kilobytes
(totally confused about the correct abbreviations now, so I'm using the full
version!) of RAM to have enough space to get all the filenames if the directory
was full.

However, according to the Econet Advanced User Guide (which incidentally
I have just noticed is signed on the inside front cover "R O'Donnell"!!) it
will give a no reply error if more than 250 bytes are transferred, so the 
operation would have to be repeated quite a few times to discover the number
of entries in the directory, which would slow down what I'm doing quite
considerably.

Best wishes,



Ian

----- Original Message -----
From: Rob [mailto:robert@...]
To: bbcmailinglist@...
Cc: bbc-micro@...
Sent: Sun, 2 Aug 2009 14:39:50 +0100
Subject: Re: [BBC-Micro] Counting Directory Entries in L3 Econet

OSGBPB 8 ?
http://beebwiki.jonripley.com/Scanning_Directories_(Reading_Directory_Entries)


On 02/08/2009, Ian Wolstenholme <bbcmailinglist@...> 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.
>
> Best wishes,
>
>
>
> Ian
>
>
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>