27 #define GET_FS(failure) \ 28 auto fs = getFileSystem(); \ 42 return fileSystem !=
nullptr;
65 if(fileSystem ==
nullptr) {
FsBase(IFileSystem *filesys)
Definition: FsBase.h:36
String getLastErrorString() const
Definition: FsBase.h:58
Installable File System base class.
Definition: IFileSystem.h:95
bool check(int res)
Check file operation result and note error code.
Definition: FsBase.h:76
The String class.
Definition: WString.h:136
Installable File System base class.
Definition: Components/IFS/src/include/IFS/FileSystem.h:39
String getErrorString(int err) const
Definition: FsBase.h:53
bool isValid() const
Definition: FsBase.h:40
String toString(int err)
get text for an error code
Definition: DirectoryTemplate.h:36
int getLastError()
determine if an error occurred during operation
Definition: FsBase.h:48
FileSystem * getFileSystem() const
Definition: FsBase.h:63
constexpr ErrorCode FS_OK
Definition: Error.h:128
int lastError
Definition: FsBase.h:87
virtual String getErrorString(int err)
get the text for a returned error code
Definition: IFileSystem.h:208