Documentation ¶
Index ¶
- type Disk
- func (disk *Disk) Exists(name string) (bool, error)
- func (disk *Disk) Read(name string) ([]byte, error)
- func (disk *Disk) Remove(name string) error
- func (disk *Disk) Walk(root string, handler func(root, file string, isdir bool) error, ...) error
- func (disk *Disk) Watch(handler func(event string, name string), interrupt chan uint8) error
- func (disk *Disk) Write(name string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Disk ¶
type Disk struct {
// contains filtered or unexported fields
}
Disk disk
func (*Disk) Walk ¶
func (disk *Disk) Walk(root string, handler func(root, file string, isdir bool) error, patterns ...string) error
Walk traverse folders and read file contents
Click to show internal directories.
Click to hide internal directories.