| 1471 | } |
| 1472 | |
| 1473 | static 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 | |
| 1484 | static SC::Result fillPosixFileStat(const struct stat& pathStat, SC::FileSystemStat& fileStat) |
| 1485 | { |