Documentation
¶
Overview ¶
Package fs contains a filesystem-based Impl.
Index ¶
Constants ¶
View Source
const ( // DirPerm is default directory permissions. DirPerm = 0o755 // FilePerm is default file permissions. FilePerm = 0o644 )
Variables ¶
View Source
var OpenFile = func(name string, flag int, perm os.FileMode) (io.ReadWriteCloser, error) { return os.OpenFile(name, flag, perm) }
OpenFile is the func used to open files. Only exported to allow testing racy filesystem errors.
Functions ¶
Types ¶
type FS ¶
FS is a filesystem-based Impl.
func (*FS) Close ¶
Close doesn't do anything for now. Might keep a basedir handle or something in future.
Click to show internal directories.
Click to hide internal directories.