Documentation ¶
Index ¶
- type Chdirfs
- func (c *Chdirfs) Chdir(dir string) error
- func (c *Chdirfs) Chmod(name string, mode os.FileMode) error
- func (c *Chdirfs) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (c *Chdirfs) Create(name string) (afero.File, error)
- func (c *Chdirfs) Mkdir(name string, perm os.FileMode) error
- func (c *Chdirfs) MkdirAll(path string, perm os.FileMode) error
- func (c *Chdirfs) Name() string
- func (c *Chdirfs) Open(name string) (afero.File, error)
- func (c *Chdirfs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)
- func (c *Chdirfs) Remove(name string) error
- func (c *Chdirfs) RemoveAll(path string) error
- func (c *Chdirfs) Rename(oldname string, newname string) error
- func (c *Chdirfs) Stat(name string) (os.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chdirfs ¶
type Chdirfs struct {
// contains filtered or unexported fields
}
func (*Chdirfs) Create ¶
Create creates a file in the filesystem, returning the file and an error, if any happens.
func (*Chdirfs) Mkdir ¶
Mkdir creates a directory in the filesystem, return an error if any happens.
func (*Chdirfs) MkdirAll ¶
MkdirAll creates a directory path and all parents that does not exist yet.
func (*Chdirfs) Remove ¶
Remove removes a file identified by name, returning an error, if any happens.
func (*Chdirfs) RemoveAll ¶
RemoveAll removes a directory path and any children it contains. It does not fail if the path does not exist (return nil).
Click to show internal directories.
Click to hide internal directories.