Documentation ¶
Index ¶
- func Lstat(path string, stat *syscall.Stat_t) error
- func Mock(mock Interface)
- func Open(path string) (io.ReadWriteCloser, error)
- func ReadDir(path string) ([]os.FileInfo, error)
- func ReadDirCount(path string) (int, error)
- func ReadDirNames(path string) ([]string, error)
- func ReadFile(path string) ([]byte, error)
- func Restore()
- func Stat(path string, stat *syscall.Stat_t) error
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadDirCount ¶
ReadDirCount is an optimized way to call len(ReadDirNames)
func ReadDirNames ¶
ReadDirNames see os.File.ReadDirNames
Types ¶
type Interface ¶
type Interface interface { ReadDir(string) ([]os.FileInfo, error) ReadDirNames(string) ([]string, error) ReadDirCount(string) (int, error) ReadFile(string) ([]byte, error) Lstat(string, *syscall.Stat_t) error Stat(string, *syscall.Stat_t) error Open(string) (io.ReadWriteCloser, error) }
Interface is the filesystem interface type.
Click to show internal directories.
Click to hide internal directories.