Answers for "c++ check if a path exists"

C++
2

check if directory exists cpp

#include <sys/stat.h>

bool IsPathExist(const std::string &s)
{
  struct stat buffer;
  return (stat (s.c_str(), &buffer) == 0);
}
Posted by: Guest on June-28-2021

Code answers related to "c++ check if a path exists"

Browse Popular Code Answers by Language