Skip to content

DiskFileSystem

class DiskFileSystem final : public FileSystem

A FileSystem implementation that reads and write files from disk.

Functions

Name Description
DiskFileSystem Creates a new instance of the DiskFileSystem class.
SetBasePath @inherit
GetBasePath @inherit
ResolvePath @inherit
Exists @inherit
IsDirectory @inherit
Join @inherit
OpenFile @inherit
StartOpenFileSystem @inherit
TryFinalizeOpenFileSystem @inherit
StartCloseFileSystem @inherit
TryFinalizeCloseFileSystem @inherit

Function Details

DiskFileSystem

DiskFileSystem()

Creates a new instance of the DiskFileSystem class.

Exists

[[nodiscard]] bool Exists(const AmOsString& path) const override

@inherit

GetBasePath

[[nodiscard]] const AmOsString& GetBasePath() const override

@inherit

IsDirectory

[[nodiscard]] bool IsDirectory(const AmOsString& path) const override

@inherit

Join

[[nodiscard]] AmOsString Join(const std::vector<AmOsString>& parts) const override

@inherit

OpenFile

[[nodiscard]] std::shared_ptr<File> OpenFile(const AmOsString& path, eFileOpenMode mode) const override

@inherit

ResolvePath

[[nodiscard]] AmOsString ResolvePath(const AmOsString& path) const override

@inherit

SetBasePath

void SetBasePath(const AmOsString& basePath) override

@inherit

StartCloseFileSystem

void StartCloseFileSystem() override

@inherit

StartOpenFileSystem

void StartOpenFileSystem() override

@inherit

TryFinalizeCloseFileSystem

bool TryFinalizeCloseFileSystem() override

@inherit

TryFinalizeOpenFileSystem

bool TryFinalizeOpenFileSystem() override

@inherit