file_exists.cpp 168 B

123456789
  1. #include "file_exists.h"
  2. #include <sys/stat.h>
  3. IGL_INLINE bool igl::file_exists(const char* filename)
  4. {
  5. struct stat status;
  6. return (stat(filename,&status)==0);
  7. }