<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Wed, 30 Aug 2006 21:55:57 +0100
From   : Sprow <info@...>
Subject: Re: *INFO

In article <299785CCFBFB4E70A2765D7679C783DE.MAI@...>,
   Ian Wolstenholme <BBCMailingList@...> wrote:
> > Curses, foiled again!

[snip]

> > There is a simple OSWORD call to read the free space, but it's an ADFS 
> > call and there is no corresponding call available to DFS.

[snip]

> My programme reads the file length information directly from
> where it should be in the disc sector for Acorn DFS, which is a
> bit naughty and very sloppy.  I should have used OSFILE really
> for compatibility with other DFSes.

The problem there is that you'd need to know the names of all the files
first. If you use OSGBPB (A=8) you can get the files in the current
directory, but then you don't know which directories are present.

I suppose

  space = 0
  FOR directory = 33 to 126
      changedir(directory)
      space = space + osgbpb(8)
  NEXT

would do but it's a drawn out process,
Sprow.
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>