userver
C++ Async Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
write.hpp
Go to the documentation of this file.
1
#pragma once
2
6
7
#include <filesystem>
8
#include <string_view>
9
10
#include <
userver/utils/zstring_view.hpp
>
11
12
USERVER_NAMESPACE_BEGIN
13
14
namespace
fs::blocking
{
15
22
void
CreateDirectories
(std::string_view path, std::filesystem::perms perms);
23
25
void
CreateDirectories
(std::string_view path);
26
32
void
RewriteFileContents
(
utils::zstring_view
path, std::string_view contents);
33
49
void
RewriteFileContentsFSync
(
utils::zstring_view
path, std::string_view contents);
50
53
void
SyncDirectoryContents
(
utils::zstring_view
path);
54
59
void
Rename
(
utils::zstring_view
source,
utils::zstring_view
destination);
60
74
void
RewriteFileContentsAtomically
(
75
utils::zstring_view
path,
76
std::string_view contents,
77
std::filesystem::perms perms,
78
std::filesystem::perm_options options = std::filesystem::perm_options::replace
79
);
80
87
void
Chmod
(
88
utils::zstring_view
path,
89
std::filesystem::perms perms,
90
std::filesystem::perm_options options = std::filesystem::perm_options::replace
91
);
92
97
bool
RemoveSingleFile
(
utils::zstring_view
path);
98
99
}
// namespace fs::blocking
100
101
USERVER_NAMESPACE_END
userver
fs
blocking
write.hpp
Generated on
for userver by
Doxygen
1.17.0