Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 a struct for writing files to the device
func (*Writer) PathFor ¶
PathFor returns the full path for the provided file, useful for using functions and libraries that don't work with the fileio.Writer
func (*Writer) SetRootdir ¶
SetRootdir sets the root directory for the writer, useful for testing
func (*Writer) WriteStreamToFile ¶
func (r *Writer) WriteStreamToFile(filePath string, stream io.ReadCloser) error
WriteStreamToFile write the stream to the file at the provided path