opendir() and @dirlist()

John Esak john at valar.com
Mon Nov 14 17:59:13 PST 2005


Yes, OPENDIR() was originally envisioned to be used in the filePro
directory... but... as soon as it became clear that it had even more
usefullness in other situations, the appropriate measures should have been
taken to allow for full filenames . Why not, the size of the elements in the
@arrays doesn't *hav* to be limited to 32, and even if it is, the truncated
filename should appear.... These long filenames are not even counted in the
array["0"]  total.  I think this is a fixable bug.

John
P.S. No, not a bug... a fixable new design improvement.  :-)


> -----Original Message-----
> From: filepro-list-bounces at lists.celestial.com
> [mailto:filepro-list-bounces at lists.celestial.com]On Behalf Of Bob
> Stockler
> Sent: Monday, November 14, 2005 8:39 PM
> To: Fplist (E-mail)
> Subject: Re: opendir() and @dirlist()
>
>
> John Esak wrote (on Mon, Nov 14, 2005 at 06:56:23PM -0500):
>
> | Enrique,
> | You are right. There is absolutely something wrong going on
> when @dirlist
> | hits a filename longer thatn 32 characters. It appears to just
> not inlude
> | it.
> |
> | I put the following into /tmp.
> |
> |
> |      kkkow
> |      kkk123456789012345678901234567890fred
> |      kkkowwww
> |      kkkhello
> |
> | then I did an    openddir("kkk*","/tmp/")
> |
> | And @dirlist elements 0,1,2.3 are filled with
> |
> | kkkow
> | kkkowww
> | kkkhello
> |
> | The filename greater than 32 characters is just ignored.
>
> The probable explanation being that these Directory-Reading
> thingies were meant for reading filePro File names (maximum
> length = 32) and info about the files in their directories.
>
> Bob
>
> --
> Bob Stockler  +-+  bob at trebor.iglou.com  +-+
> http://members.iglou.com/trebor
> Author: MENU EDIT II - The BEST Creator/Editor/Manager for
> filePro User Menus.
> Fully functional (time-limited) demos available by email request
> (specify OS).
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list



More information about the Filepro-list mailing list