OPENDIR number of files problem

Bruce Easton bruce at stn.com
Wed Oct 8 13:26:11 PDT 2008


Kenneth Brody Wednesday, October 08, 2008 4:02 PM:
>
> Quoting Bruce Easton (Wed, 8 Oct 2008 15:33:18 -0400):
>
> > Maybe someone has seen this before.  I'm running fp 5.0.13 on a
> SCO system
> > and for a directory that has 2180 files in it matching ".csv", OPENDIR
> > returns 180, dropping the leading digit.  If there are 2181 files in the
> > directory, it will return 181 (returning this value into a dummy field
> > declared as (5,.0).  (I found out these values using the
> debugger.) There is
> > no automatic processing seen by this process.
> [...]
>
> Why is it that things like this lay hidden for years, only to be found by
> several people all at the same time?
>
> OPENDIR() returns a (3,.0) value, which is basically the value mod 1000.
> If you have more than 999 matching filenames, the value will be wrong.
> This will be fixed in the next update.
>
> In the meantime, you can use @DIRLIST["0"] to get the correct count.
>
> --
> KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001

Thanks, Ken - Marcia is the one who showed me something
was up on a system she's supporting that captures RFID
readings - I saw all those files in one directory
and told her 'all these I-nodes aren't free, you know!' :)

Bruce

Bruce Easton
STN, Inc.



More information about the Filepro-list mailing list