|
std::string | jau::fs::absolute (const std::string_view &relpath) noexcept |
| Returns the absolute path of given relpath if existing, otherwise an empty string. More...
|
|
std::string | jau::fs::basename (const std::string_view &path) noexcept |
| Return stripped leading directory components from given path separated by / . More...
|
|
bool | jau::fs::chdir (const std::string &path) noexcept |
| Change working directory. More...
|
|
bool | jau::fs::compare (const file_stats &source1, const file_stats &source2, const bool verbose=false) noexcept |
| Compare the bytes of both files, denoted by source1 and source2. More...
|
|
bool | jau::fs::compare (const std::string &source1, const std::string &source2, const bool verbose=false) noexcept |
| Compare the bytes of both files, denoted by source1 and source2. More...
|
|
bool | jau::fs::copy (const std::string &source_path, const std::string &dest_path, const copy_options copts=copy_options::none) noexcept |
| Copy the given source_path to dest_path using copy_options. More...
|
|
std::string | jau::fs::dirname (const std::string_view &path) noexcept |
| Return stripped last component from given path separated by / , excluding the trailing separator / . More...
|
|
int | jau::fs::from_named_fd (const std::string &named_fd) noexcept |
| Returns the file descriptor from the given named file descriptor. More...
|
|
std::string | jau::fs::get_cwd () noexcept |
| Return the current working directory or empty on failure. More...
|
|
bool | jau::fs::get_dir_content (const int dirfd, const std::string &path, const consume_dir_item &digest) noexcept |
| Returns a list of directory elements excluding . More...
|
|
bool | jau::fs::get_dir_content (const std::string &path, const consume_dir_item &digest) noexcept |
| Returns a list of directory elements excluding . More...
|
|
constexpr bool | jau::fs::is_set (const copy_options mask, const copy_options bit) noexcept |
|
constexpr bool | jau::fs::is_set (const file_stats::field_t mask, const file_stats::field_t bits) noexcept |
|
constexpr bool | jau::fs::is_set (const fmode_t mask, const fmode_t bits) noexcept |
|
constexpr bool | jau::fs::is_set (const mountflags_linux mask, const mountflags_linux bit) noexcept |
|
constexpr bool | jau::fs::is_set (const traverse_event mask, const traverse_event bit) noexcept |
|
constexpr bool | jau::fs::is_set (const traverse_options mask, const traverse_options bit) noexcept |
|
constexpr bool | jau::fs::is_set (const umountflags_linux mask, const umountflags_linux bit) noexcept |
|
bool | jau::fs::isAbsolute (const std::string_view &path) noexcept |
| Returns true if first character is / or - in case of Windows - \\ . More...
|
|
bool | jau::fs::mkdir (const std::string &path, const fmode_t mode=jau::fs::fmode_t::def_dir_prot, const bool verbose=false) noexcept |
| Create directory. More...
|
|
mount_ctx | jau::fs::mount (const std::string &source, const std::string &target, const std::string &fs_type, const mountflags_t flags, const std::string &fs_options="") |
| Attach the filesystem named in source to target using the given filesystem source directly. More...
|
|
mount_ctx | jau::fs::mount_image (const std::string &image_path, const std::string &target, const std::string &fs_type, const mountflags_t flags, const std::string &fs_options="") |
| Attach the filesystem image named in image_path to target using an intermediate platform specific filesystem image loop-device. More...
|
|
constexpr uint16_t | jau::fs::number (const copy_options rhs) noexcept |
|
constexpr uint32_t | jau::fs::number (const file_stats::field_t rhs) noexcept |
|
constexpr uint32_t | jau::fs::number (const fmode_t rhs) noexcept |
|
constexpr mountflags_t | jau::fs::number (const mountflags_linux rhs) noexcept |
|
constexpr uint16_t | jau::fs::number (const traverse_event rhs) noexcept |
|
constexpr uint16_t | jau::fs::number (const traverse_options rhs) noexcept |
|
constexpr umountflags_t | jau::fs::number (const umountflags_linux rhs) noexcept |
|
constexpr bool | jau::fs::operator!= (const copy_options lhs, const copy_options rhs) noexcept |
|
constexpr bool | jau::fs::operator!= (const file_stats::field_t lhs, const file_stats::field_t rhs) noexcept |
|
constexpr bool | jau::fs::operator!= (const fmode_t lhs, const fmode_t rhs) noexcept |
|
constexpr bool | jau::fs::operator!= (const mountflags_linux lhs, const mountflags_linux rhs) noexcept |
|
constexpr bool | jau::fs::operator!= (const traverse_event lhs, const traverse_event rhs) noexcept |
|
constexpr bool | jau::fs::operator!= (const traverse_options lhs, const traverse_options rhs) noexcept |
|
constexpr bool | jau::fs::operator!= (const umountflags_linux lhs, const umountflags_linux rhs) noexcept |
|
constexpr copy_options | jau::fs::operator& (const copy_options lhs, const copy_options rhs) noexcept |
|
constexpr file_stats::field_t | jau::fs::operator& (const file_stats::field_t lhs, const file_stats::field_t rhs) noexcept |
|
constexpr fmode_t | jau::fs::operator& (const fmode_t lhs, const fmode_t rhs) noexcept |
|
constexpr mountflags_linux | jau::fs::operator& (const mountflags_linux lhs, const mountflags_linux rhs) noexcept |
|
constexpr traverse_event | jau::fs::operator& (const traverse_event lhs, const traverse_event rhs) noexcept |
|
constexpr traverse_options | jau::fs::operator& (const traverse_options lhs, const traverse_options rhs) noexcept |
|
constexpr umountflags_linux | jau::fs::operator& (const umountflags_linux lhs, const umountflags_linux rhs) noexcept |
|
constexpr copy_options & | jau::fs::operator&= (copy_options &lhs, const copy_options rhs) noexcept |
|
constexpr file_stats::field_t & | jau::fs::operator&= (file_stats::field_t &lhs, const file_stats::field_t rhs) noexcept |
|
constexpr fmode_t & | jau::fs::operator&= (fmode_t &lhs, const fmode_t rhs) noexcept |
|
constexpr mountflags_linux & | jau::fs::operator&= (mountflags_linux &lhs, const mountflags_linux rhs) noexcept |
|
constexpr mountflags_t & | jau::fs::operator&= (mountflags_t &lhs, const mountflags_linux rhs) noexcept |
|
constexpr traverse_event & | jau::fs::operator&= (traverse_event &lhs, const traverse_event rhs) noexcept |
|
constexpr traverse_options & | jau::fs::operator&= (traverse_options &lhs, const traverse_options rhs) noexcept |
|
constexpr umountflags_linux & | jau::fs::operator&= (umountflags_linux &lhs, const umountflags_linux rhs) noexcept |
|
constexpr umountflags_t & | jau::fs::operator&= (umountflags_t &lhs, const umountflags_linux rhs) noexcept |
|
constexpr bool | jau::fs::operator== (const copy_options lhs, const copy_options rhs) noexcept |
|
constexpr bool | jau::fs::operator== (const file_stats::field_t lhs, const file_stats::field_t rhs) noexcept |
|
constexpr bool | jau::fs::operator== (const fmode_t lhs, const fmode_t rhs) noexcept |
|
constexpr bool | jau::fs::operator== (const mountflags_linux lhs, const mountflags_linux rhs) noexcept |
|
constexpr bool | jau::fs::operator== (const traverse_event lhs, const traverse_event rhs) noexcept |
|
constexpr bool | jau::fs::operator== (const traverse_options lhs, const traverse_options rhs) noexcept |
|
constexpr bool | jau::fs::operator== (const umountflags_linux lhs, const umountflags_linux rhs) noexcept |
|
constexpr copy_options | jau::fs::operator^ (const copy_options lhs, const copy_options rhs) noexcept |
|
constexpr file_stats::field_t | jau::fs::operator^ (const file_stats::field_t lhs, const file_stats::field_t rhs) noexcept |
|
constexpr fmode_t | jau::fs::operator^ (const fmode_t lhs, const fmode_t rhs) noexcept |
|
constexpr mountflags_linux | jau::fs::operator^ (const mountflags_linux lhs, const mountflags_linux rhs) noexcept |
|
constexpr traverse_event | jau::fs::operator^ (const traverse_event lhs, const traverse_event rhs) noexcept |
|
constexpr traverse_options | jau::fs::operator^ (const traverse_options lhs, const traverse_options rhs) noexcept |
|
constexpr umountflags_linux | jau::fs::operator^ (const umountflags_linux lhs, const umountflags_linux rhs) noexcept |
|
constexpr copy_options & | jau::fs::operator^= (copy_options &lhs, const copy_options rhs) noexcept |
|
constexpr file_stats::field_t & | jau::fs::operator^= (file_stats::field_t &lhs, const file_stats::field_t rhs) noexcept |
|
constexpr fmode_t & | jau::fs::operator^= (fmode_t &lhs, const fmode_t rhs) noexcept |
|
constexpr mountflags_linux & | jau::fs::operator^= (mountflags_linux &lhs, const mountflags_linux rhs) noexcept |
|
constexpr mountflags_t & | jau::fs::operator^= (mountflags_t &lhs, const mountflags_linux rhs) noexcept |
|
constexpr traverse_event & | jau::fs::operator^= (traverse_event &lhs, const traverse_event rhs) noexcept |
|
constexpr traverse_options & | jau::fs::operator^= (traverse_options &lhs, const traverse_options rhs) noexcept |
|
constexpr umountflags_linux & | jau::fs::operator^= (umountflags_linux &lhs, const umountflags_linux rhs) noexcept |
|
constexpr umountflags_t & | jau::fs::operator^= (umountflags_t &lhs, const umountflags_linux rhs) noexcept |
|
constexpr copy_options | jau::fs::operator| (const copy_options lhs, const copy_options rhs) noexcept |
|
constexpr file_stats::field_t | jau::fs::operator| (const file_stats::field_t lhs, const file_stats::field_t rhs) noexcept |
|
constexpr fmode_t | jau::fs::operator| (const fmode_t lhs, const fmode_t rhs) noexcept |
|
constexpr mountflags_linux | jau::fs::operator| (const mountflags_linux lhs, const mountflags_linux rhs) noexcept |
|
constexpr traverse_event | jau::fs::operator| (const traverse_event lhs, const traverse_event rhs) noexcept |
|
constexpr traverse_options | jau::fs::operator| (const traverse_options lhs, const traverse_options rhs) noexcept |
|
constexpr umountflags_linux | jau::fs::operator| (const umountflags_linux lhs, const umountflags_linux rhs) noexcept |
|
constexpr copy_options & | jau::fs::operator|= (copy_options &lhs, const copy_options rhs) noexcept |
|
constexpr file_stats::field_t & | jau::fs::operator|= (file_stats::field_t &lhs, const file_stats::field_t rhs) noexcept |
|
constexpr fmode_t & | jau::fs::operator|= (fmode_t &lhs, const fmode_t rhs) noexcept |
|
constexpr mountflags_linux & | jau::fs::operator|= (mountflags_linux &lhs, const mountflags_linux rhs) noexcept |
|
constexpr mountflags_t & | jau::fs::operator|= (mountflags_t &lhs, const mountflags_linux rhs) noexcept |
|
constexpr traverse_event & | jau::fs::operator|= (traverse_event &lhs, const traverse_event rhs) noexcept |
|
constexpr traverse_options & | jau::fs::operator|= (traverse_options &lhs, const traverse_options rhs) noexcept |
|
constexpr umountflags_linux & | jau::fs::operator|= (umountflags_linux &lhs, const umountflags_linux rhs) noexcept |
|
constexpr umountflags_t & | jau::fs::operator|= (umountflags_t &lhs, const umountflags_linux rhs) noexcept |
|
constexpr copy_options | jau::fs::operator~ (const copy_options rhs) noexcept |
|
constexpr file_stats::field_t | jau::fs::operator~ (const file_stats::field_t rhs) noexcept |
|
constexpr fmode_t | jau::fs::operator~ (const fmode_t rhs) noexcept |
|
constexpr mountflags_linux | jau::fs::operator~ (const mountflags_linux rhs) noexcept |
|
constexpr traverse_event | jau::fs::operator~ (const traverse_event rhs) noexcept |
|
constexpr traverse_options | jau::fs::operator~ (const traverse_options rhs) noexcept |
|
constexpr umountflags_linux | jau::fs::operator~ (const umountflags_linux rhs) noexcept |
|
constexpr ::mode_t | jau::fs::posix_protection_bits (const fmode_t mask) noexcept |
| Returns the POSIX protection bits: rwx_all | set_uid | set_gid | sticky, i.e. More...
|
|
bool | jau::fs::remove (const std::string &path, const traverse_options topts=traverse_options::none) noexcept |
| Remove the given path. More...
|
|
bool | jau::fs::rename (const std::string &oldpath, const std::string &newpath) noexcept |
| Rename oldpath to newpath using POSIX rename() , with the following combinations. More...
|
|
void | jau::fs::sync () noexcept |
| Synchronizes filesystems, i.e. More...
|
|
std::string | jau::fs::to_named_fd (const int fd) noexcept |
| Returns platform dependent named file descriptor of given file descriptor, if supported. More...
|
|
std::string | jau::fs::to_string (const copy_options mask) noexcept |
|
std::string | jau::fs::to_string (const file_stats::field_t mask) noexcept |
|
std::string | jau::fs::to_string (const fmode_t mask, const bool show_rwx=false) noexcept |
| Return the string representation of fmode_t. More...
|
|
std::string | jau::fs::to_string (const traverse_event mask) noexcept |
|
std::string | jau::fs::to_string (const traverse_options mask) noexcept |
|
bool | jau::fs::touch (const std::string &path, const fmode_t mode=jau::fs::fmode_t::def_file_prot) noexcept |
| Touch the file with current time and create file if not existing yet. More...
|
|
bool | jau::fs::touch (const std::string &path, const jau::fraction_timespec &atime, const jau::fraction_timespec &mtime, const fmode_t mode=jau::fs::fmode_t::def_file_prot) noexcept |
| Touch the file with given atime and mtime and create file if not existing yet. More...
|
|
bool | jau::fs::umount (const mount_ctx &context, const umountflags_t flags) |
| Detach the given mount_ctx context More...
|
|
bool | jau::fs::umount (const std::string &target, const umountflags_t flags) |
| Detach the topmost filesystem mounted on target optionally using given umountflags options if supported. More...
|
|
bool | jau::fs::visit (const file_stats &item_stats, const traverse_options topts, const path_visitor &visitor, std::vector< int > *dirfds=nullptr) noexcept |
| Visit element(s) of a given path, see traverse_options for detailed settings. More...
|
|
bool | jau::fs::visit (const std::string &path, const traverse_options topts, const path_visitor &visitor, std::vector< int > *dirfds=nullptr) noexcept |
| Visit element(s) of a given path, see traverse_options for detailed settings. More...
|
|