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

Function deleteFile

TactilityCore/Source/file/File.cpp:338–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338bool deleteFile(const std::string& path) {
339 auto lock = getLock(path)->asScopedLock();
340 lock.lock();
341 return remove(path.c_str()) == 0;
342}
343
344bool deleteDirectory(const std::string& path) {
345 auto lock = getLock(path)->asScopedLock();

Callers 5

deleteRecursivelyFunction · 0.85
handleAppInstallMethod · 0.85
handleApiAppsInstallMethod · 0.85
handleFsDeleteMethod · 0.85
doInstallMethod · 0.85

Calls 4

getLockFunction · 0.85
asScopedLockMethod · 0.80
removeFunction · 0.50
lockMethod · 0.45

Tested by

no test coverage detected