Only if your reading the Execution directory, as soon as you pick a new directory to read it fails to separate the directories from the files again.
what does yours do if you have it try to read D$="C:\" instead of D$= _CWD$ ?
Glad so many people are happy I brought this up, As I stated in my first post it is a little Gem of a routine.
Won't actually return file size, but you could always add a simple OPEN:LOF:CLOSE to get file sizes as it reads in the files(I mean put the code in the ELSEIF area). I do not need that functionality in what I'm working on, but something like Bplus is talking about you might what to show file size as well.
get_next_entry nam$, flags, file_size
It *does* get the file_size for us; we just never return it anywhere to make use of it:thats odd, when I tried storing and printing the file size earlier(when I made that post) it only showed '0' for all file sizes.. thats why I thought it wasn't working. In fact it does show file size now.. very odd. I sit corrected.
thats odd, when I tried storing and printing the file size earlier(when I made that post) it only showed '0' for all file sizes.. thats why I thought it wasn't working. In fact it does show file size now.. very odd. I sit corrected.