Re: Fastest dir()
I wrote and tested several ways to get a fast isdir() function. Repetitive
testing, a dos bat file and win_dir() were fastest, depending on directory size.
But in real life situation on winxp box, win_dir() by Greg Haberek is
consistantly turning in times too small to measure. Wrapping it for my purpose
was simple:
function isdir(sequence where)
if equal(win_dir(where), -1) then
return 0
else
return 1
end if
end function -- isdir(sequence where)
Wrapping it so simply makes me feel a little guilty, considering how complex
win_dir() is. Thanks, Greg.
Kat
<[ This message has been forwarded by Vincent on behalf of Kat. ]>
|
Not Categorized, Please Help
|
|