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

◆ exists()

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

true if the file exists

for me a file exists if I can check its status

true if the file exists.

Definition at line 71 of file filestatus.cc.

Referenced by readable(), testfile(), and uniquenew().

72  {
73  struct stat status;
74  bool retval=(stat(path, &status)==0);
75  return(retval);
76  } // bool exists(const char* path)
Here is the caller graph for this function: