5 #ifndef OS_INTERFACES_FILESYSTEMINTERFACE_HPP_ 6 #define OS_INTERFACES_FILESYSTEMINTERFACE_HPP_ 50 virtual Status _rename(
const char* sourcePath,
const char* destPath) = 0;
82 #endif // OS_INTERFACES_FILESYSTEMINTERFACE_HPP_ virtual Status _getFreeSpace(const char *path, FwSizeType &totalBytes, FwSizeType &freeBytes)=0
Get filesystem free and total space in bytes on the filesystem containing the specified path...
PlatformSizeType FwSizeType
FileSystemInterface()=default
default constructor
virtual ~FileSystemInterface()=default
default virtual destructor
types and constants shared by users of Os::FileSystem and by its implementations
virtual Status _rename(const char *sourcePath, const char *destPath)=0
Rename (or move) a file from source to destination.
virtual Status _getPathType(const char *path, PathType &pathType)=0
Get the type of the path (file, directory, etc.)
virtual Status _getWorkingDirectory(char *path, FwSizeType bufferSize)=0
Get the current working directory.
virtual FileSystemHandle * getHandle()=0
return the underlying FileSystem handle (implementation specific)
FileSystemInterface & operator=(const FileSystemInterface &other)=delete
assignment operator is forbidden
virtual Status _removeFile(const char *path)=0
Remove a file at the specified path.
virtual Status _removeDirectory(const char *path)=0
Remove a directory at the specified path.
virtual Status _changeWorkingDirectory(const char *path)=0
Change the current working directory to the specified path.