# Functions

DirectoryPermissions makes FileSystem.Create use the provided directory permissions.
FilePermissions makes FileSystem.Create use the provided file permissions.
IsCloseFileError checks if the returned error is because the file could not be closed.
IsCreateDirectoryError checks if the returned error is because the directory could not be created.
IsCreateFileError checks if the returned error is because the file could not be created.
IsFileExistsError checks if the returned error is because the file could not be checked for existence.
IsOpenFileError checks if the returned error is because the file could not be opened.
IsReadFileError checks if the returned error is because the file could not be read.
IsWriteFileError checks if the returned error is because the file could not be written.
MockCloseFileError makes the Write method (of the io.Writer returned by FileSystem.Create) return err.
MockCreateDirError makes FileSystem.Create return err.
MockCreateFileError makes FileSystem.Create return err.
MockExists makes FileSystem.Exists use the provided function to check if the file exists.
MockExistsError makes FileSystem.Exists return err.
MockInput provides a buffer where the content will be read from.
MockOpenFileError makes FileSystem.Open return err.
MockOutput provides a buffer where the content will be written.
MockPath ensures that the file created with this scaffold is at path.
MockReadFileError makes the Read method (of the io.Reader returned by FileSystem.Open) return err.
MockWriteFileError makes the Write method (of the io.Writer returned by FileSystem.Create) return err.
New returns a new FileSystem.
NewMock returns a new FileSystem.

# Interfaces

FileSystem is an IO wrapper to create files.

# Type aliases

MockOptions configure FileSystem.
Options configure FileSystem.