fs::FileSystem
- Inherits: api::ExecutionContext
public
- fs::FileSystem::Rename
Types
#
ExcludeCallbackusing fs::FileSystem::ExcludeCallback = IsExclude (*)(const var::StringView name, void *)
Type: IsExclude()(const var::StringView name, void )
#
IsExclude- no
- yes
#
IsOverwriteusing fs::FileSystem::IsOverwrite = File::IsOverwrite
Type: File::IsOverwrite
#
IsRecursiveusing 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:
- var::StringView
path
#
access(var::StringView path, const Access &access)int fs::FileSystem::access (var::StringView path, const Access &access)
Type: int
Parameters:
- var::StringView
path
- const Access &
access
#
create_directory(var::StringView path, const Permissions &permissions=Permissions(0)) constconst FileSystem & fs::FileSystem::create_directory (var::StringView path, const Permissions &permissions=Permissions(0)) const
Type: const FileSystem &
Parameters:
- var::StringView
path
- const Permissions &
permissions
#
create_directory(var::StringView path, IsRecursive is_recursive, const Permissions &permissions=Permissions(0)) constconst FileSystem & fs::FileSystem::create_directory (var::StringView path, IsRecursive is_recursive, const Permissions &permissions=Permissions(0)) const
Type: const FileSystem &
Parameters:
- var::StringView
path
- IsRecursive
is_recursive
- const Permissions &
permissions
#
directory_exists(var::StringView path) constbool fs::FileSystem::directory_exists (var::StringView path) const
Type: bool
Parameters:
- var::StringView
path
#
exists(var::StringView path) constbool fs::FileSystem::exists (var::StringView path) const
Type: bool
Parameters:
- var::StringView
path
#
get_entry_count(var::StringView path, IsRecursive is_recursive=IsRecursive::no) constsize_t fs::FileSystem::get_entry_count (var::StringView path, IsRecursive is_recursive=IsRecursive::no) const
Type: size_t
Parameters:
- var::StringView
path
- IsRecursive
is_recursive
#
get_info(const File &file) constFileInfo fs::FileSystem::get_info (const File &file) const
Type: FileInfo
Parameters:
- const File &
file
#
get_info(var::StringView path) constFileInfo fs::FileSystem::get_info (var::StringView path) const
Type: FileInfo
Parameters:
- var::StringView
path
#
operator()(const Rename &options) constinline
const FileSystem & fs::FileSystem::operator() (const Rename &options) const
Type: const FileSystem &
Parameters:
- const Rename &
options
#
read_directory(var::StringView path, IsRecursive is_recursive=IsRecursive::no, ExcludeCallback exclude=nullptr, void *context=nullptr) constPathContainer fs::FileSystem::read_directory (var::StringView path, IsRecursive is_recursive=IsRecursive::no, ExcludeCallback exclude=nullptr, void *context=nullptr) const
Type: PathContainer
Parameters:
- var::StringView
path
- IsRecursive
is_recursive
- ExcludeCallback
exclude
void *
context
#
remove(var::StringView path) constconst FileSystem & fs::FileSystem::remove (var::StringView path) const
Type: const FileSystem &
Parameters:
- var::StringView
path
#
remove_directory(var::StringView path) constconst FileSystem & fs::FileSystem::remove_directory (var::StringView path) const
Type: const FileSystem &
Parameters:
- var::StringView
path
#
remove_directory(var::StringView path, IsRecursive recursive) constconst FileSystem & fs::FileSystem::remove_directory (var::StringView path, IsRecursive recursive) const
Type: const FileSystem &
Parameters:
- var::StringView
path
- IsRecursive
recursive
#
rename(const Rename &options) constconst FileSystem & fs::FileSystem::rename (const Rename &options) const
Type: const FileSystem &
Parameters:
- const Rename &
options
#
touch(var::StringView path) constconst FileSystem & fs::FileSystem::touch (var::StringView path) const
Type: const FileSystem &
Parameters:
- var::StringView
path