Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
std::filesystem Namespace Reference

Functions

fs::path getHomePath ()
 
fs::path consolidated (fs::path rawPath)
 resolves symlinks, ~ (Unix home dir) and relative specs
 
bool has_perm (fs::path const &p, fs::perms permissionMask)
 check if the denoted path p has at least the given permissions
 
bool can_read (fs::path const &p)
 check if the owner has read permissions on the denoted file or directory
 
bool can_write (fs::path const &p)
 
bool can_exec (fs::path const &p)
 

Variables

const string UNIX_HOMEDIR_SYMBOL {"~"}
 
lib::Literal UNIX_HOMEDIR_ENV {"HOME"}
 

Function Documentation

◆ getHomePath()

fs::path getHomePath ( )
inline

Definition at line 48 of file file.hpp.

References UNIX_HOMEDIR_ENV.

Referenced by consolidated().

+ Here is the caller graph for this function:

◆ consolidated()

fs::path consolidated ( fs::path  rawPath)
inline

resolves symlinks, ~ (Unix home dir) and relative specs

Returns
absolute canonical form if the path exists; otherwise only the home directory is expanded

Definition at line 61 of file file.hpp.

References getHomePath(), and UNIX_HOMEDIR_SYMBOL.

Referenced by FileSupport_test::homedirectoryExpansion(), DataTable< TAB >::save(), and DataTable< TAB >::saveAs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ has_perm()

bool has_perm ( fs::path const &  p,
fs::perms  permissionMask 
)
inline

check if the denoted path p has at least the given permissions

Definition at line 74 of file file.hpp.

Referenced by can_exec(), can_read(), can_write(), and FileSupport_test::simplifiedPermissionAccess().

+ Here is the caller graph for this function:

◆ can_read()

bool can_read ( fs::path const &  p)
inline

check if the owner has read permissions on the denoted file or directory

Definition at line 81 of file file.hpp.

References has_perm().

Referenced by FileSupport_test::simplifiedPermissionAccess().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ can_write()

bool can_write ( fs::path const &  p)
inline

Definition at line 87 of file file.hpp.

References has_perm().

Referenced by FileSupport_test::simplifiedPermissionAccess().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ can_exec()

bool can_exec ( fs::path const &  p)
inline

Definition at line 93 of file file.hpp.

References has_perm().

Referenced by FileSupport_test::simplifiedPermissionAccess().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ UNIX_HOMEDIR_SYMBOL

const string UNIX_HOMEDIR_SYMBOL {"~"}

Definition at line 25 of file file.cpp.

Referenced by consolidated().

◆ UNIX_HOMEDIR_ENV

lib::Literal UNIX_HOMEDIR_ENV {"HOME"}

Definition at line 26 of file file.cpp.

Referenced by getHomePath().