53 return fs::path{home};
68 return fs::weakly_canonical(rawPath);
74 has_perm (fs::path
const& p, fs::perms permissionMask)
76 return (fs::status(p).permissions() & permissionMask) == permissionMask;
83 return has_perm (p, fs::perms::owner_read);
89 return has_perm (p, fs::perms::owner_write);
95 return has_perm (p, fs::perms::owner_exec);
110 return "≺"+std::string{path}+
"≻";
Lumiera error handling (C++ interface).
LumieraError< LERR_(CONFIG), Invalid > Config
const string UNIX_HOMEDIR_SYMBOL
bool can_exec(fs::path const &p)
lib::Literal UNIX_HOMEDIR_ENV
bool can_write(fs::path const &p)
bool has_perm(fs::path const &p, fs::perms permissionMask)
check if the denoted path p has at least the given permissions
fs::path consolidated(fs::path rawPath)
resolves symlinks, ~ (Unix home dir) and relative specs
bool can_read(fs::path const &p)
check if the owner has read permissions on the denoted file or directory
static std::string invoke(fs::path path) noexcept
failsafe invocation of custom string conversion.
Marker types to indicate a literal string and a Symbol.