userver: userver/fs/path_utils.hpp Source File
Loading...
Searching...
No Matches
path_utils.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/fs/path_utils.hpp
4/// @brief file path operations and utilities
5
6#include <string>
7
8USERVER_NAMESPACE_BEGIN
9
10/// @brief filesystem support
11namespace fs {
12
13/// @brief Returns relative path from full path
14/// @param path full path, must start with `dir`
15/// @param dir directory path to get relative path
16/// @note it does not access filesystem, the relative path is calculated
17/// lexically.
18std::string GetLexicallyRelative(std::string_view path, std::string_view dir);
19
20} // namespace fs
21
22USERVER_NAMESPACE_END