You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 25, 2022. It is now read-only.
This means that Readdir does not actually read the directory, making it impossible to use.
I specifically got caught with this trying to copy a packed folder to the filesystem recursively - Readdir was returning the same folder as its own child.
The
http.Fileinterface requiresReaddir, which is used to list a folder inFileServerwhenindex.htmlis not present.Currently, packr's
file.Readdirwhich comes frombox.Openreturns just a single entry, the directory name itself, see: https://github.com/gobuffalo/packd/blob/master/file.go#L41This means that
Readdirdoes not actually read the directory, making it impossible to use.I specifically got caught with this trying to copy a packed folder to the filesystem recursively -
Readdirwas returning the same folder as its own child.