opendir sequence
Fairlight
fairlite at fairlite.com
Wed Sep 26 23:01:04 PDT 2012
On Wed, Sep 26, 2012 at 10:31:58AM -0500, Scott Nelson thus spoke:
> fP 5.06 on SCO OSE 6
>
> It appears that opendir reads the requested directory the same as doing
> an 'l' to list, by name order. Is there a way to read the listing with
> opendir in date / time order?
Nope, not inherently. You're at the mercy of what readdir gives you in
terms of order.
Your only recourse is limited. Store all file information in arrays and
then re-sort the array. Cakewalk in perl, horrendously painful in fP--and
limited by the maximum size of your array.
mark->
--
Audio panton, cogito singularis.
More information about the Filepro-list
mailing list