userver: userver/fs/read.hpp Source File
Loading...
Searching...
No Matches
read.hpp
Go to the documentation of this file.
1#pragma once
2
5
6#include <cstddef>
7#include <limits>
8#include <string>
9
14
15USERVER_NAMESPACE_BEGIN
16
18namespace fs {
19
29 engine::TaskProcessor& async_tp,
30 const std::string& path,
31 SettingReadFileFlags flags = {SettingsReadFile::kSkipHidden},
32 std::size_t max_size_to_cache = std::numeric_limits<std::size_t>::max()
33);
34
40std::string ReadFileContents(engine::TaskProcessor& async_tp, const std::string& path);
41
47bool FileExists(engine::TaskProcessor& async_tp, const std::string& path);
48
49} // namespace fs
50
51USERVER_NAMESPACE_END