Re: Greg: "win_dir()" problems... 12/32/2003 :-)
- Posted by Greg Haberek <ghaberek at gmail.com> Dec 17, 2005
- 530 views
> Oh yeah, one little thing is that if the path is a directory and it > does not contain a trailing "\\" slash, win_dir() returns only > one record or something, so it's not exactly the same as what Eu's > dir command returns. Adding the slash at the end gets the whole > dir though. This isnt too much of a problem, but you cant simply > replace d=dir() with d=win_dir() in your program and expect it to > work exactly the same because it wont. Perhaps you can find a way > to fix this also, which would be nice :) > In the mean time, im using it with the above changes and using a > trailing slash char and it's working the same as when i was reading > the file written first with system dir so im happy with it. > Now i can eliminate the system call as well as the file read which will > speed things up a little. It's a cleaner program now too in that it > doesnt have to write a temporary file anywhere. I thought I made a note of that in the docs. Check 'em again. I've been thinking of adding a check to see if someone was getting the entry of a directory, and if so, enter it and get the files. I'll make the recommended changes and post them this weekend. ~Greg