MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / isDirectory

Function isDirectory

TactilityCore/Source/file/File.cpp:356–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356bool isDirectory(const std::string& path) {
357 auto lock = getLock(path)->asScopedLock();
358 lock.lock();
359 struct stat stat_result;
360 return stat(path.c_str(), &stat_result) == 0 && S_ISDIR(stat_result.st_mode);
361}
362
363bool readLines(const std::string& filePath, bool stripNewLine, std::function<void(const char* line)> callback) {
364 auto lock = getLock(filePath)->asScopedLock();

Callers 14

deleteRecursivelyFunction · 0.85
registerInstalledAppsFunction · 0.85
createTempDirectoryFunction · 0.85
handleFsDeleteMethod · 0.85
handleFsRenameMethod · 0.85
saveVersionToFileFunction · 0.85
hasDataAssetsFunction · 0.85
hasSdAssetsFunction · 0.85
copyDirectoryFunction · 0.85
installFunction · 0.85
uninstallFunction · 0.85

Calls 4

getLockFunction · 0.85
asScopedLockMethod · 0.80
statClass · 0.70
lockMethod · 0.45

Tested by

no test coverage detected