Components/IFS/src/include/IFS/HYFS/FileSystem.h
Go to the documentation of this file.
34 * An 'undelete' could be added which would remove this to restore the FW file. It probably wouldn't
60 FileSystem(IObjectStore* fwStore, Storage::Partition ffsPartition) : fwfs(fwStore), ffs(ffsPartition)
int flush(FileHandle file) override
flush any buffered data to physical media
Definition: Components/IFS/src/include/IFS/HYFS/FileSystem.h:57
Definition: ObjectStore.h:108
int lseek(FileHandle file, int offset, SeekOrigin origin) override
change file read/write position
int setattr(const char *path, FileAttributes attr) override
Set file attributes.
int eof(FileHandle file) override
determine if current file position is at end of file
FileHandle open(const char *path, OpenFlags flags) override
open a file by name/path
Definition: DirectoryTemplate.h:36
FileSystem(IObjectStore *fwStore, Storage::Partition ffsPartition)
Definition: Components/IFS/src/include/IFS/HYFS/FileSystem.h:60
String getErrorString(int err) override
get the text for a returned error code
Implementation of firmware filing system using IFS.
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:86
int fcontrol(FileHandle file, ControlCode code, void *buffer, size_t bufSize) override
Low-level and non-standard file control operations.
int rewinddir(DirHandle dir) override
Reset directory read position to start.
int write(FileHandle file, const void *data, size_t size) override
write content to a file at current position and advance cursor
int setcompression(FileHandle file, const Compression &compression) override
Set file compression information.
int mount() override
Mount file system, performing any required initialisation.
int opendir(const char *path, DirHandle &dir) override
open a directory for reading
int setacl(FileHandle file, const ACL &acl) override
Set access control information for file.
FileHandle fopen(const Stat &stat, OpenFlags flags) override
open a file from it's stat structure
Definition: Access.h:34
int read(FileHandle file, void *data, size_t size) override
read content from a file and advance cursor
int ftruncate(FileHandle file, size_t new_size) override
Truncate (reduce) the size of an open file.
int rename(const char *oldpath, const char *newpath) override
rename a file
int settime(FileHandle file, time_t mtime) override
Set modificatino tiem for file.
Definition: Components/IFS/src/include/IFS/SPIFFS/FileSystem.h:63
1.8.13