News for hackers. Stuff that matters.
Re:Show HN: Get lists of files in a directory that contains ... by marcodiego on Sunday August 29, 2021 @09:53AM (#28346690)
Sure, I can explain. FindFirst and FindNext are API (syscalls) from DOS (maybe CP/M too, I don't know). I can use findfirst to begin listing files on a directory and then make subsequent calls to findnext to get each one of the other files.

At the time people looked down on it mostly because everybody else did it differently and DOS looked like a toy OS compared to more advanced ones.

Of course, my comment is kind of a joke. There many advantages on more advanced ways to list files on a directory. Not having to make one syscall for every file is just one.

There are no comments on this comment yet.