userver: fs::FileInfoWithData Struct Reference
Loading...
Searching...
No Matches
fs::FileInfoWithData Struct Reference

#include <userver/fs/file_info_with_data.hpp>

Detailed Description

Struct file with load data.

data_or_path holds either file contents (std::string) or a full path to the file (std::filesystem::path) when the file is too large to cache in memory.

Definition at line 21 of file file_info_with_data.hpp.

Public Attributes

std::variant< std::string, std::filesystem::path > data_or_path
std::string extension

Member Data Documentation

◆ data_or_path

std::variant<std::string, std::filesystem::path> fs::FileInfoWithData::data_or_path

Definition at line 22 of file file_info_with_data.hpp.

◆ extension

std::string fs::FileInfoWithData::extension

Definition at line 23 of file file_info_with_data.hpp.


The documentation for this struct was generated from the following file: