Answers for "c++ filesystem check if directory exists"

C++
4

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++ filesystem check if directory exists"

Browse Popular Code Answers by Language