MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / posixEntryTypeFromMode

Function posixEntryTypeFromMode

Libraries/FileSystem/FileSystem.cpp:1473–1482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1471}
1472
1473static SC::FileSystemEntryType posixEntryTypeFromMode(mode_t mode)
1474{
1475 if (S_ISREG(mode))
1476 return SC::FileSystemEntryType::File;
1477 if (S_ISDIR(mode))
1478 return SC::FileSystemEntryType::Directory;
1479 if (S_ISLNK(mode))
1480 return SC::FileSystemEntryType::SymbolicLink;
1481 return SC::FileSystemEntryType::Other;
1482}
1483
1484static SC::Result fillPosixFileStat(const struct stat& pathStat, SC::FileSystemStat& fileStat)
1485{

Callers 1

FileSystem.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected