Re: Fastest dir()

new topic     » topic index » view thread      » older message » newer message

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. ]>

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu