claugeas/utils.cpp

8 lines
159 B
C++
Raw Normal View History

2022-11-12 01:09:13 +03:00
#include <sys/stat.h>
#include "utils.h"
bool path_exists(const std::string &name) {
struct stat buffer;
return (stat(name.c_str(), &buffer) == 0);
}