MCPcopy Create free account
hub / github.com/Kitware/VTK / M_FileExists

Method M_FileExists

Utilities/MetaIO/vtkmetaio/metaImage.cxx:967–984  ·  view source on GitHub ↗

return true if the file exists

Source from the content-addressed store, hash-verified

965
966// return true if the file exists
967bool
968MetaImage::M_FileExists(const char * filename)
969{
970#ifdef _MSC_VER
971# define access _access
972#endif
973#ifndef R_OK
974# define R_OK 04
975#endif
976 if (access(filename, R_OK) != 0)
977 {
978 return false;
979 }
980 else
981 {
982 return true;
983 }
984}
985
986bool
987MetaImage::FileIsFullPath(const char * in_name)

Callers

nothing calls this directly

Calls 1

accessClass · 0.85

Tested by

no test coverage detected