Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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);
}
Source by www.systutorials.com #
 
PREVIOUS NEXT
Tagged: #check #directory #exists #cpp
ADD COMMENT
Topic
Name
7+7 =