FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
filesystem.hpp File Reference

Filesystem helpers. More...

#include <cstring>
#include <expected>
#include <vector>
#include <ranges>
#include <string>
#include <filesystem>
#include <linux/limits.h>
#include "expected.hpp"
#include "string.hpp"
Include dependency graph for filesystem.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ns_fs
 Enhanced filesystem utilities wrapping std::filesystem.
 

Typedefs

using ns_fs::path = fs::path
 
using ns_fs::perms = fs::perms
 
using ns_fs::copy_options = fs::copy_options
 
using ns_fs::perm_options = fs::perm_options
 

Functions

std::expected< fs::path, std::string > ns_fs::realpath (fs::path const &path_file_src)
 Resolves an input path using realpath(3)
 
Value< std::vector< fs::path > > ns_fs::regular_files (fs::path const &path_dir_src)
 List the files in a directory.
 
Value< fs::path > ns_fs::create_directories (fs::path const &p)
 Creates directories recursively.
 
template<typename... Args>
fs::path ns_fs::placeholders_replace (fs::path const &path, Args &&... args)
 Replace placeholders in a path by traversing components.
 

Detailed Description

Filesystem helpers.

Author
Ruan Formigoni

Definition in file filesystem.hpp.