Re:Fibers: An Elegant Windows API
by jstimpfle on Friday March 29, 2019 @12:04PM
(#19522819)
Is there such a thing? What does it do? I can only find a perl implementation that seems to use FindFirstFile() / FindNextFile().
[ Parent
| on HN ]
No, it was a question.
Edit: I should clarify. It was a low effort question to another low effort question. I should state that I have no experience with the API in question. I was just asking a question of the difference between the two, and the poster above me answer in another reply that the answer is that FindFirstFile is used to initialize / reset the query, where FindNextFile is use to continue the query.
To further answer the question I was replying to above, I think another function that could be paired with a hypothetical FindFile would be a method to initialize the query.
I do not know what would be a better API.
> To further answer the question I was replying to above, I think another function that could be paired with a hypothetical FindFile would be a method to initialize the query.
This is the obvious and correct way to do it, and it's the way it's done in POSIX with opendir() / readdir().