userver: userver/fs/read.hpp File Reference
Loading...
Searching...
No Matches
read.hpp File Reference

Detailed Description

functions for asynchronous file read operations

Definition in file read.hpp.

Go to the source code of this file.

#include <memory>
#include <string>
#include <unordered_map>
#include <userver/engine/task/task_processor_fwd.hpp>
#include <userver/utils/flags.hpp>
+ Include dependency graph for read.hpp:
+ This graph shows which files directly or indirectly include this file:

Classes

struct  fs::FileInfoWithData
 Struct file with load data. More...
 

Namespaces

namespace  fs
 filesystem support
 

Typedefs

using fs::FileInfoWithDataConstPtr = std::shared_ptr<const FileInfoWithData>
 
using fs::FileInfoWithDataMap
 

Enumerations

enum class  fs::SettingsReadFile {
  kNone = 0 ,
  fs::kSkipHidden = 1 << 0
}
 

Functions

std::string fs::GetLexicallyRelative (std::string_view path, std::string_view dir)
 Returns relative path from full path.
 
FileInfoWithDataMap fs::ReadRecursiveFilesInfoWithData (engine::TaskProcessor &async_tp, const std::string &path, utils::Flags< SettingsReadFile > flags={SettingsReadFile::kSkipHidden})
 Returns files from recursively traversed directory.
 
std::string fs::ReadFileContents (engine::TaskProcessor &async_tp, const std::string &path)
 Reads file contents asynchronously.
 
bool fs::FileExists (engine::TaskProcessor &async_tp, const std::string &path)
 Checks whether the file exists asynchronosly.