TF++, Miscellaneous classes and modules in C++:

◆ regular()

bool tfxx::file::regular ( const char *  path)

true is the file is a regular file

true is the file is a regular file.

Definition at line 103 of file filestatus.cc.

Referenced by testfile().

104  {
105  struct stat status;
106  bool retval=false;
107  if (stat(path, &status)==0) { retval=S_ISREG(status.st_mode); }
108  return(retval);
109  } // bool regular(const char* path)
Here is the caller graph for this function: