Skip to main content

fs::FileSystem

Types

ExcludeCallback#

using fs::FileSystem::ExcludeCallback =  IsExclude (*)(const var::StringView name, void *) 

Type: IsExclude()(const var::StringView name, void )

IsExclude#

  • no
  • yes

IsOverwrite#

using fs::FileSystem::IsOverwrite =  File::IsOverwrite 

Type: File::IsOverwrite

IsRecursive#

using fs::FileSystem::IsRecursive =  Dir::IsRecursive 

Type: Dir::IsRecursive

Functions

FileSystem()#

fs::FileSystem::FileSystem ()

access(var::StringView path)#

Access fs::FileSystem::access (var::StringView path)

Type: Access

Parameters:

access(var::StringView path, const Access &access)#

int fs::FileSystem::access (var::StringView path, const Access &access)

Type: int

Parameters:

create_directory(var::StringView path, const Permissions &permissions=Permissions(0)) const#

const FileSystem & fs::FileSystem::create_directory (var::StringView path, const Permissions &permissions=Permissions(0)) const

Type: const FileSystem &

Parameters:

create_directory(var::StringView path, IsRecursive is_recursive, const Permissions &permissions=Permissions(0)) const#

const FileSystem & fs::FileSystem::create_directory (var::StringView path, IsRecursive is_recursive, const Permissions &permissions=Permissions(0)) const

Type: const FileSystem &

Parameters:

directory_exists(var::StringView path) const#

bool fs::FileSystem::directory_exists (var::StringView path) const

Type: bool

Parameters:

exists(var::StringView path) const#

bool fs::FileSystem::exists (var::StringView path) const

Type: bool

Parameters:

get_entry_count(var::StringView path, IsRecursive is_recursive=IsRecursive::no) const#

size_t fs::FileSystem::get_entry_count (var::StringView path, IsRecursive is_recursive=IsRecursive::no) const

Type: size_t

Parameters:

get_info(const File &file) const#

FileInfo fs::FileSystem::get_info (const File &file) const

Type: FileInfo

Parameters:

get_info(var::StringView path) const#

FileInfo fs::FileSystem::get_info (var::StringView path) const

Type: FileInfo

Parameters:

operator()(const Rename &options) const#

inline

const FileSystem & fs::FileSystem::operator() (const Rename &options) const

Type: const FileSystem &

Parameters:

read_directory(var::StringView path, IsRecursive is_recursive=IsRecursive::no, ExcludeCallback exclude=nullptr, void *context=nullptr) const#

PathContainer fs::FileSystem::read_directory (var::StringView path, IsRecursive is_recursive=IsRecursive::no, ExcludeCallback exclude=nullptr, void *context=nullptr) const

Type: PathContainer

Parameters:

remove(var::StringView path) const#

const FileSystem & fs::FileSystem::remove (var::StringView path) const

Type: const FileSystem &

Parameters:

remove_directory(var::StringView path) const#

const FileSystem & fs::FileSystem::remove_directory (var::StringView path) const

Type: const FileSystem &

Parameters:

remove_directory(var::StringView path, IsRecursive recursive) const#

const FileSystem & fs::FileSystem::remove_directory (var::StringView path, IsRecursive recursive) const

Type: const FileSystem &

Parameters:

rename(const Rename &options) const#

const FileSystem & fs::FileSystem::rename (const Rename &options) const

Type: const FileSystem &

Parameters:

touch(var::StringView path) const#

const FileSystem & fs::FileSystem::touch (var::StringView path) const

Type: const FileSystem &

Parameters: