forked from GeertJohan/go.rice
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix readdir and implement seek for directory
If n <= 0, Readdir should return the remaining files and never return io.EOF. If n > 0, Readdir should only return io.EOF if it returns an empty slice, per the documentation of os.Readdir. It should also not reset the offset to 0. Implement seek for directories when offset is 0 and whence is io.SeekStart, because os.Seek supports this.
- Loading branch information
Showing
1 changed file
with
22 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters