Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
File is the http.File use in FileSystem. It is used to wrap the Readdir method of http.File so that we can remove files and directories that start with a period from its output.
func (File) Readdir ¶
Readdir is a wrapper around the Readdir method of the embedded File that filters out all files that start with a period in their name.
type FileSystem ¶
type FileSystem struct { base.FileSystem Dir string Logger *log.Entry }
FileSystem is an http.FileSystem that hides hidden "dot files" from being served.
func (FileSystem) Open ¶
func (fs FileSystem) Open(name string) (base.ServingFile, error)
Open is a wrapper around the Open method of the embedded FileSystem that serves a 403 permission error when name has a file or directory with whose name starts with a period in its path.
Click to show internal directories.
Click to hide internal directories.