|
| std::expected< fs::path, std::string > | realpath (fs::path const &path_file_src) |
| | Resolves an input path using realpath(3)
|
| |
| Value< std::vector< fs::path > > | regular_files (fs::path const &path_dir_src) |
| | List the files in a directory.
|
| |
| Value< fs::path > | create_directories (fs::path const &p) |
| | Creates directories recursively.
|
| |
| template<typename... Args> |
| fs::path | placeholders_replace (fs::path const &path, Args &&... args) |
| | Replace placeholders in a path by traversing components.
|
| |
Enhanced filesystem utilities wrapping std::filesystem.
This namespace extends std::filesystem with additional helper functions for common filesystem operations.
template<typename... Args>
| fs::path ns_fs::placeholders_replace |
( |
fs::path const & | path, |
|
|
Args &&... | args ) |
|
inlinenodiscard |
Replace placeholders in a path by traversing components.
This function iterates through each component of the path and replaces matching components with the provided arguments in order.
- Template Parameters
-
| Args | The types of the arguments to replace |
- Parameters
-
| path | The path with placeholder components |
| args | The values to replace matching placeholders with |
- Returns
- The path with placeholders replaced
Definition at line 101 of file filesystem.hpp.