MCPcopy Create free account
hub / github.com/devfeel/dotweb / Open

Method Open

core/hideReaddirFS.go:19–25  ·  view source on GitHub ↗

Conforms to http.Filesystem

(name string)

Source from the content-addressed store, hash-verified

17
18// Conforms to http.Filesystem
19func (fs HideReaddirFS) Open(name string) (http.File, error) {
20 f, err := fs.FileSystem.Open(name)
21 if err != nil {
22 return nil, err
23 }
24 return hideReaddirFile{File: f}, nil
25}
26
27// Overrides the http.File:Readdir default implementation
28func (f hideReaddirFile) Readdir(count int) ([]os.FileInfo, error) {

Callers 2

FormFilesMethod · 0.80
FileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected