needle in a haystack
[1/3] from: deryk:iitowns at: 11-Aug-2001 16:06
I've a need for a script to search for the existance of a given list of files on a HD. Rebol was the first tool that popped into my head that sounded like it would suit the need. I looked at the script library and the dir-tree* recursive scripts but for the number of files/dirs that need to be searched causes rebol (latest /view) to pork it (local test on a subdir in my $HOME dir has 14,404 dirs/files alone and segfaulted..). So basically, I'm asking if it can be done with the latest version of /core and/or any pointers to scripts I can use or glue together to get this job done. -- Regards, Deryk Robosson
[2/3] from: fsievert::uos::de at: 11-Aug-2001 10:43
Hi! I did not try it, but maybe it would help to use do http://proton.cl-ki.uni-osnabrueck.de/REBOL/bugfixes.r or you could change the line foreach item current-list [ to repeat item current-list copy/deep [ This might help, because 'foreach is broken. (see http://proton.../REBOL/bug-test.r) Hope that helps, Frank
[3/3] from: deryk:iitowns at: 11-Aug-2001 17:38
> Hi! > I did not try it, but maybe it would help to use
<<quoted lines omitted: 7>>> Hope that helps, > Frank
I'll give it a try probably later on tonight and see what happens. I tried the same script below on my Win98 box and it didn't exibit the same problem but then again I doubt my Win box has even a fraction of files that my Linux machine has. :)
>> I've a need for a script to search for the existance of a given list >> of files on a HD. Rebol was the first tool that popped into my head
<<quoted lines omitted: 24>>> [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Regards, Deryk Robosson Deryk Robosson 22 Flemington St. Albany, WA 6330 Australia ABN: 56 728 377 499 PH: +61 0408429835 EMAIL: [deryk--iitowns--com]
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted