Kea 2.7.5
|
Classes | |
struct | Path |
Paths on a filesystem. More... | |
struct | TemporaryDirectory |
struct | Umask |
RAII device to limit access of created files. More... | |
Functions | |
bool | exists (const std::string &path) |
Check if there is a file or directory at the given path. | |
string | getContent (const std::string &file_name) |
Get the content of a regular file. | |
bool | isDir (const std::string &path) |
Check if there is a directory at the given path. | |
bool | isFile (const std::string &path) |
Check if there is a file at the given path. | |
bool | isSocket (string const &path) |
bool isc::util::file::exists | ( | const std::string & | path | ) |
Check if there is a file or directory at the given path.
path | The path being checked. |
Definition at line 46 of file filesystem.cc.
Referenced by getContent().
std::string isc::util::file::getContent | ( | const std::string & | file_name | ) |
Get the content of a regular file.
file_name | The file name. |
BadValue | when the file can't be opened or is not a regular one. |
Definition at line 29 of file filesystem.cc.
References exists(), isc_throw, and isFile().
Referenced by isc::http::BasicHttpAuthConfig::getFileContent(), and isc::d2::TSIGKeyInfoParser::parse().
bool isc::util::file::isDir | ( | const std::string & | path | ) |
Check if there is a directory at the given path.
path | The path being checked. |
Definition at line 52 of file filesystem.cc.
Referenced by isc::asiolink::TlsContextBase::configure(), and isc::db::MySqlConnection::openDatabase().
bool isc::util::file::isFile | ( | const std::string & | path | ) |
Check if there is a file at the given path.
path | The path being checked. |
Definition at line 61 of file filesystem.cc.
Referenced by getContent(), isc::db::MySqlConnection::initializeSchema(), and isc::db::PgSqlConnection::initializeSchema().
bool isc::util::file::isSocket | ( | string const & | path | ) |
Definition at line 78 of file filesystem.cc.