📂 golxzn::os::filesystem 📂 1.6.5
golxzn filesystem submodule
Loading...
Searching...
No Matches
Files and directories manipulation

Functions

static bool golxzn::os::filesystem::exists (const std::wstring_view path) noexcept
 Check if an entry exists.
 
static bool golxzn::os::filesystem::is_file (const std::wstring_view path)
 Check if an entry is a file.
 
static bool golxzn::os::filesystem::is_directory (const std::wstring_view path)
 Check if an entry is a directory.
 
static error golxzn::os::filesystem::make_directory (const std::wstring_view path)
 Create a directory (recursively).
 
static error golxzn::os::filesystem::remove_directory (const std::wstring_view path)
 Remove a directory (recursively).
 
static error golxzn::os::filesystem::remove_file (const std::wstring_view path)
 Remove a file.
 
static error golxzn::os::filesystem::remove (const std::wstring_view path)
 List an entry (file or directory).
 

Detailed Description

Function Documentation

◆ exists()

static bool golxzn::os::filesystem::exists ( const std::wstring_view  path)
staticnoexcept

Check if an entry exists.

Parameters
pathdirectory or file path
Returns
true if exists, false otherwise

◆ is_directory()

static bool golxzn::os::filesystem::is_directory ( const std::wstring_view  path)
static

Check if an entry is a directory.

Parameters
pathpath to the directory entry
Returns
true if is directory, false otherwise

◆ is_file()

static bool golxzn::os::filesystem::is_file ( const std::wstring_view  path)
static

Check if an entry is a file.

Parameters
pathpath to the file entry
Returns
true if is file, false otherwise

◆ make_directory()

static error golxzn::os::filesystem::make_directory ( const std::wstring_view  path)
static

Create a directory (recursively).

Parameters
pathpath to the directory
Returns
golxzn::os::filesystem::error - filesystem::OK or the error message

◆ remove()

static error golxzn::os::filesystem::remove ( const std::wstring_view  path)
static

List an entry (file or directory).

Parameters
pathpath to the entry
Returns
golxzn::os::filesystem::error - filesystem::OK or the error message

◆ remove_directory()

static error golxzn::os::filesystem::remove_directory ( const std::wstring_view  path)
static

Remove a directory (recursively).

Parameters
pathpath to the directory
Returns
golxzn::os::filesystem::error - filesystem::OK or the error message

◆ remove_file()

static error golxzn::os::filesystem::remove_file ( const std::wstring_view  path)
static

Remove a file.

Parameters
pathpath to the file
Returns
golxzn::os::filesystem::error - filesystem::OK or the error message