Re: Problems concerning dir()
- Posted by Greg Haberek <ghaberek at gmail.com> Jan 17, 2006
- 487 views
> Thanks. I'll look into these examples for the next release. > dir() is tricky, because each C compiler does it a bit differently, > and because Watcom crashes in certain special cases that I have to avoid. Why not use my win_dir() routine? It's written from scratch using the Windows API, so it shouldn't have any "bugs" - and a directory must end in a backslash for it to return files, otherwise it returns information about the directory itself. And it a directory contains no files, it returns an empty sequence, but an error (atom) if the directory does not exist. Perhaps, Rob, you could implement my win_dir() routine in the WIN32 Interpr= eter? ~Greg