Documentation ¶
Index ¶
- Constants
- Variables
- func DirExists(fsys FS, path string) (bool, error)
- func Exists(fsys FS, path string) (bool, error)
- func IsDir(fsys FS, path string) (bool, error)
- func IsEmpty(fsys FS, path string) (bool, error)
- func MkdirAll(fsys FS, path string, perm FileMode) error
- func TempDir(fsys FS, dir, prefix string) (name string, err error)
- func WriteFile(fsys FS, filename string, data []byte, perm FileMode) error
- type DirEntry
- type FS
- type File
- type FileInfo
- type FileMode
- type GlobFS
- type MutableFS
- type PathError
- type ReadDirFS
- type ReadDirFile
- type ReadFileFS
- type StatFS
- type SubFS
- type WalkDirFunc
Constants ¶
View Source
const ( ModeDir = iofs.ModeDir ModeAppend = iofs.ModeAppend ModeExclusive = iofs.ModeExclusive ModeTemporary = iofs.ModeTemporary ModeSymlink = iofs.ModeSymlink ModeDevice = iofs.ModeDevice ModeNamedPipe = iofs.ModeNamedPipe ModeSocket = iofs.ModeSocket ModeSetuid = iofs.ModeSetuid ModeSetgid = iofs.ModeSetgid ModeCharDevice = iofs.ModeCharDevice ModeSticky = iofs.ModeSticky ModeIrregular = iofs.ModeIrregular ModeType = iofs.ModeType ModePerm = iofs.ModePerm )
Variables ¶
View Source
var ( ErrInvalid = iofs.ErrInvalid ErrPermission = iofs.ErrPermission ErrExist = iofs.ErrExist ErrNotExist = iofs.ErrNotExist ErrClosed = iofs.ErrClosed SkipAll = iofs.SkipAll SkipDir = iofs.SkipDir )
Functions ¶
Types ¶
type MutableFS ¶
type MutableFS interface { StatFS Chmod(name string, mode FileMode) error Chown(name string, uid, gid int) error Chtimes(name string, atime time.Time, mtime time.Time) error Create(name string) (File, error) Mkdir(name string, perm FileMode) error MkdirAll(path string, perm FileMode) error OpenFile(name string, flag int, perm FileMode) (File, error) Remove(name string) error RemoveAll(path string) error Rename(oldname, newname string) error }
type ReadDirFile ¶
type ReadDirFile = iofs.ReadDirFile
type ReadFileFS ¶
type ReadFileFS = iofs.ReadFileFS
type WalkDirFunc ¶
type WalkDirFunc = iofs.WalkDirFunc
Click to show internal directories.
Click to hide internal directories.