MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / mode

Function mode

src/OSspecific/POSIX/POSIX.C:467–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465
466
467mode_t Foam::mode(const fileName& name, const bool followLink)
468{
469 if (POSIX::debug)
470 {
471 Pout<< FUNCTION_NAME << " : name:" << name << endl;
472 }
473 fileStat fileStatus(name, followLink);
474 if (fileStatus.isValid())
475 {
476 return fileStatus.status().st_mode;
477 }
478 else
479 {
480 return 0;
481 }
482}
483
484
485Foam::fileName::Type Foam::type(const fileName& name, const bool followLink)

Callers 4

POSIX.CFile · 0.70
existsFunction · 0.70
isDirFunction · 0.70
isFileFunction · 0.70

Calls 1

isValidMethod · 0.80

Tested by

no test coverage detected