Skip to content

Conversation

karrick
Copy link
Owner

@karrick karrick commented May 4, 2022

Closes #58: User did not know they needed to always invoke Scanner's
Err() method because of documentation oversight.

Closes #58: User did not know they needed to always invoke Scanner's
Err() method because of documentation oversight.
@karrick karrick self-assigned this May 4, 2022
@karrick karrick merged commit 9a7752c into master May 4, 2022
@karrick karrick deleted the close branch May 4, 2022 00:42
powersj added a commit to powersj/godirwalk that referenced this pull request Jan 31, 2023
In karrick#68, the scanner now returns any error that was encountered. On
Windows, the call to Readdir will return an EOF when it is done reading
a directory.

I believe the desired behavior is to throw an error on any actual
errors, but in the case of EOF, continue on to the next directory. As
such, check for the EOF and return no error while releasing resources.

fixes: karrick#70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible memory leak?
1 participant