opendir sequence

Ken Cole ken.m.cole at gmail.com
Wed Sep 26 23:10:00 PDT 2012


Or read them and store them in a temporary table (file) with an auto index then read back using the auto index.

On 27/09/2012, at 4:01 PM, Fairlight <fairlite at fairlite.com> wrote:

> 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.
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list


More information about the Filepro-list mailing list