Lumiera
0.pre.03
»edit your freedom«
|
Go to the source code of this file.
Includes the C++ Filesystem library and provides some convenience helpers.
The std::filesystem
library allows for portable access to file and directory handling functions; this header maps these functions with an concise fs::
namespace prefix, and offers some convenience extensions, which are „slightly non-portable“ (meaning they were developed on Linux and „should“ work on Unix like systems; adapters for exotic operating systems could be added here when necessary...)
Definition in file file.hpp.
#include "lib/error.hpp"
#include "lib/symbol.hpp"
#include "lib/meta/util.hpp"
#include <filesystem>
#include <cstdlib>
Classes | |
struct | StringConv< fs::path, void > |
specialisation: render filesystem path as double quoted string More... | |
Functions | |
bool | can_exec (fs::path const &p) |
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) |
fs::path | consolidated (fs::path rawPath) |
resolves symlinks, ~ (Unix home dir) and relative specs More... | |
fs::path | getHomePath () |
bool | has_perm (fs::path const &p, fs::perms permissionMask) |
check if the denoted path p has at least the given permissions | |
|
inline |
resolves symlinks, ~
(Unix home dir) and relative specs
Definition at line 70 of file file.hpp.
References std::filesystem::consolidated().
Referenced by std::filesystem::consolidated().