Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalid = gofs.ErrInvalid // "invalid argument" ErrPermission = gofs.ErrPermission // "permission denied" ErrExist = gofs.ErrExist // "file already exists" ErrNotExist = gofs.ErrNotExist // "file does not exist" ErrClosed = gofs.ErrClosed // "file already closed" )
Functions ¶
Types ¶
type FS ¶
type FS interface { // MkdirAll creates a directory named path, along with any necessary parents. MkdirAll(path string) error // OpenFile opens a file for reading and writing using the given flags. OpenFile(path string, flag int) (File, error) // ReadDir reads the directory named by path and returns a list of // directory entries up to the specified limit. If limit is -1, // all entries will be returned. ReadDir(path string, limit int, startAfter string) (entries []DirEntry, nextStartAfter string, err error) // RemoveAll removes path and any children it contains. RemoveAll(path string) error // Rename renames (moves) oldpath to newpath. Rename(oldpath, newpath string) error // Stat returns a FileInfo describing the file. Stat(path string) (FileInfo, error) }
FS is the interface implemented by a writeable file system.
Click to show internal directories.
Click to hide internal directories.