[DUG] Grouping files
Robert martin
rob at wildsoft.co.nz
Thu Sep 22 12:20:28 NZST 2005
Hi
Is a TSearchRec really that slow? I have always thought it was fine to
open a Tsearchrec and do a FindNext until I got to the right file. We
have a recursive routine that does this to search an entire HDD for
certain files and it seems quick (it takes about the same amount of time
as doing a windows find on the entire hdd).
If I was doing it, I go through all files and add the ones within the
valid date range to a StringList for further processing.
Rob Martin
Software Engineer
phone +64 03 377 0495
fax +64 03 377 0496
web www.chreos.com
Wild Software Ltd
Jeremy Coulter wrote:
> Hi All.
> I have been given a request that means I need to look inside some zip
> files in an archived dir we have.
> I only need to look at certain files within a certain file date range
> BUT, we unfortunitly have over 7700 files in this dir !!!! I know, I
> know....but this is only a couple of mnths worth of files ! so we
> kinda have to live with.
>
> Is there a way to "Group" files togeither so that when I do a
> TSearchRec search, the files are in decending order of date?
> Then, I can look at the file date and if its not within the range, I
> can stop the searchrec.....I hope you understand what I mean.
>
> I thought about loading the files into an array, and sorting them on
> date then getting rid of the ones I dont need or as it loops thru,
> just ignore the ones I dont want, but this is just as slow as doing a
> SearchRec.
>
> anyone got any ideas?
>
> Jeremy
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Delphi mailing list
>Delphi at ns3.123.co.nz
>http://ns3.123.co.nz/mailman/listinfo/delphi
>
>
More information about the Delphi
mailing list