Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIllegalDir = errors.New("illegal file path reference outside of working directory")
Functions ¶
Types ¶
type Directory ¶
type Directory struct {
// contains filtered or unexported fields
}
func NewDirectory ¶
type FS ¶
type FS interface { Create(string) (io.WriteCloser, error) WriteFile(name string, data []byte, perm os.FileMode) error }
FS is interface for operating on the files of the underlying filesystem.
func ForFilename ¶
ForFilename returns appropriate filesystem based on the name of the file or directory given. Logic is simple:
- if file has a known extension, the appropriate adapter will be returned.
- else: it's a directory.
Click to show internal directories.
Click to hide internal directories.