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

functions for synchronous (blocking) file read operations More...

#include <string>
#include <boost/filesystem/operations.hpp>
+ Include dependency graph for read.hpp:

Go to the source code of this file.

Namespaces

namespace  fs
 filesystem support
 
namespace  fs::blocking
 blocking function and classes to work with filesystem
 

Functions

std::string fs::blocking::ReadFileContents (const std::string &path)
 Reads file contents synchronously.
 
bool fs::blocking::FileExists (const std::string &path)
 Checks whether the file exists synchronously.
 
boost::filesystem::file_type fs::blocking::GetFileType (const std::string &path)
 Get file type returned by stat(2) synchronously.
 

Detailed Description

functions for synchronous (blocking) file read operations

Definition in file read.hpp.