peaclock
/
src
/
ob
/
util.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "ob/util.hh"
#include <string>
#include <fstream>
namespace OB::Util
{
bool file_exists(std::string const& str)
{
return static_cast<bool>(std::ifstream(str));
}
} // namespace OB::Util