Documentation ¶
Index ¶
- type File
- func (f *File) Close() error
- func (f *File) Name() string
- func (f *File) Read(p []byte) (int, error)
- func (f *File) ReadAt(b []byte, off int64) (n int, err error)
- func (f *File) Readdir(n int) ([]os.FileInfo, error)
- func (f *File) Readdirnames(n int) ([]string, error)
- func (f *File) Seek(offset int64, whence int) (ret int64, err error)
- func (f *File) Stat() (os.FileInfo, error)
- func (f *File) Sync() error
- func (f *File) Truncate(size int64) error
- func (f *File) Write(p []byte) (int, error)
- func (f *File) WriteAt(b []byte, off int64) (n int, err error)
- func (f *File) WriteString(s string) (n int, err error)
- type FileSystem
- func (fs *FileSystem) Chdir(name string) error
- func (fs *FileSystem) Chmod(name string, mode os.FileMode) error
- func (fs *FileSystem) Chown(name string, uid, gid int) error
- func (fs *FileSystem) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (fs *FileSystem) Create(name string) (absfs.File, error)
- func (fs *FileSystem) FastWalk(path string, fn func(string, os.FileMode) error) error
- func (fs *FileSystem) Getwd() (dir string, err error)
- func (fs *FileSystem) Lchown(name string, uid, gid int) error
- func (fs *FileSystem) ListSeparator() uint8
- func (fs *FileSystem) Lstat(name string) (os.FileInfo, error)
- func (fs *FileSystem) Mkdir(name string, perm os.FileMode) error
- func (fs *FileSystem) MkdirAll(name string, perm os.FileMode) error
- func (fs *FileSystem) Open(name string) (absfs.File, error)
- func (fs *FileSystem) OpenFile(name string, flag int, perm os.FileMode) (absfs.File, error)
- func (fs *FileSystem) Readlink(name string) (string, error)
- func (fs *FileSystem) Remove(name string) error
- func (fs *FileSystem) RemoveAll(name string) error
- func (fs *FileSystem) Rename(oldpath, newpath string) error
- func (fs *FileSystem) Separator() uint8
- func (fs *FileSystem) Stat(name string) (os.FileInfo, error)
- func (fs *FileSystem) Symlink(oldname, newname string) error
- func (fs *FileSystem) TempDir() string
- func (fs *FileSystem) Truncate(name string, size int64) error
- func (fs *FileSystem) Walk(path string, fn func(string, os.FileInfo, error) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
func NewFS ¶
func NewFS() (*FileSystem, error)
func (*FileSystem) Chdir ¶
func (fs *FileSystem) Chdir(name string) error
func (*FileSystem) Chmod ¶
func (fs *FileSystem) Chmod(name string, mode os.FileMode) error
Chmod changes the mode of the named file to mode.
func (*FileSystem) Chown ¶
func (fs *FileSystem) Chown(name string, uid, gid int) error
Chown changes the owner and group ids of the named file
func (*FileSystem) Getwd ¶
func (fs *FileSystem) Getwd() (dir string, err error)
func (*FileSystem) ListSeparator ¶
func (fs *FileSystem) ListSeparator() uint8
func (*FileSystem) Remove ¶
func (fs *FileSystem) Remove(name string) error
func (*FileSystem) RemoveAll ¶
func (fs *FileSystem) RemoveAll(name string) error
func (*FileSystem) Rename ¶
func (fs *FileSystem) Rename(oldpath, newpath string) error
func (*FileSystem) Separator ¶
func (fs *FileSystem) Separator() uint8
func (*FileSystem) Symlink ¶
func (fs *FileSystem) Symlink(oldname, newname string) error
func (*FileSystem) TempDir ¶
func (fs *FileSystem) TempDir() string
Click to show internal directories.
Click to hide internal directories.