Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Disk ¶
type Disk interface { // Exists checks if the provided file or directory exists Exists(path string) (bool, error) // Read returns the entire file as a byte buffer // // Returns error if provided path is not a file Read(path string) ([]byte, error) // Write writes provided byte buffer to the path Write(path string, data []byte) error // Remove deletes the provided file or directory recursively Remove(path string) error // MkDir creates the provided directory recursively MkDir(path string) error // ReadDir returns all entries within the directory // // Returns error if provided path is not a directory ReadDir(path string) ([]Entry, error) // Open opens provided path for writing Open(path string, flag int) (io.WriteCloser, error) }
Click to show internal directories.
Click to hide internal directories.