#[non_exhaustive]pub enum FSError<I>where
I: Error,{
Show 17 variants
InternalFSError(InternalFSError),
MalformedPath,
BincodeError(BincodeError),
NotADirectory,
IsADirectory,
DirectoryNotEmpty,
ReadOnlyFile,
NotFound,
AlreadyExists,
PermissionDenied,
InvalidInput,
StorageFull,
RootDirectoryFull,
DirEntryLimitReached,
UnsupportedFS,
UnexpectedEof,
IOError(I),
}Expand description
An error indicating that a filesystem-related operation has failed
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InternalFSError(InternalFSError)
An internal FS error occured
MalformedPath
The Path provided is malformed.
This usually means that a path you provided isn’t a valid Utf8WindowsPath
If you are 100% that your path is valid (path.is_valid()), then perhaps you have encountered a bug.
File a bug report here: https://github.com/Oakchris1955/simple-fatfs/issues
BincodeError(BincodeError)
bincode errored out while (de)serializing
This error variant should NEVER be raised. If you get this error, open an issue: https://github.com/Oakchris1955/simple-fatfs/issues
NotADirectory
Expected a directory
IsADirectory
Found a directory when we expected a file
DirectoryNotEmpty
Expected an empty directory
ReadOnlyFile
This file cannot be modified, as it is read-only
NotFound
A file or directory wasn’t found
AlreadyExists
An entity already exists
PermissionDenied
The operation lacked the necessary privileges to complete.
InvalidInput
A parameter was incorrect.
StorageFull
The underlying storage is full.
RootDirectoryFull
There aren’t enough free entries on the root directory to perform this operation. Consider performing this operation on a subdirectory instead
DirEntryLimitReached
The entry limit for this directory (2^16 - 1) has been reached. Consider performing this operation on a subdirectory instead
UnsupportedFS
The filesystem provided is not supported (e.g. ExFAT).
UnexpectedEof
Unexpected EOF
IOError(I)
An IO error occured