Documentation ¶
Index ¶
Constants ¶
View Source
const ( // defaultFilePermissions houses the default mode to use when no file permissions are provided DefaultFilePermissions os.FileMode = 0o644 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader is a struct for reading files from the device
func (*Reader) CheckPathExists ¶
CheckPathExists checks if a path exists and will return an error if either the file does not exist or if there is an error checking the path.
func (*Reader) PathFor ¶
PathFor returns the full path for the provided file, useful for using functions and libraries that don't work with the fileio.Reader
func (*Reader) SetRootdir ¶
SetRootdir sets the root directory for the reader, useful for testing
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer is responsible for writing files to the device
func (*Writer) SetRootdir ¶
SetRootdir sets the root directory for the writer, useful for testing
Click to show internal directories.
Click to hide internal directories.