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

Function isFile

TactilityCore/Source/file/File.cpp:350–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350bool isFile(const std::string& path) {
351 auto lock = getLock(path)->asScopedLock();
352 lock.lock();
353 return access(path.c_str(), F_OK) == 0;
354}
355
356bool isDirectory(const std::string& path) {
357 auto lock = getLock(path)->asScopedLock();

Callers 15

deleteRecursivelyFunction · 0.85
registerInstalledAppFunction · 0.85
hasFileForDeviceFunction · 0.85
removeFunction · 0.85
getI18nDataFilePathFunction · 0.85
containsFunction · 0.85
removeFunction · 0.85
handleFsDownloadMethod · 0.85
handleApiScreenshotMethod · 0.85
handleFsDeleteMethod · 0.85
handleFsRenameMethod · 0.85
handleAssetsMethod · 0.85

Calls 3

getLockFunction · 0.85
asScopedLockMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected