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

Function deleteDirectory

TactilityCore/Source/file/File.cpp:344–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344bool deleteDirectory(const std::string& path) {
345 auto lock = getLock(path)->asScopedLock();
346 lock.lock();
347 return rmdir(path.c_str()) == 0;
348}
349
350bool isFile(const std::string& path) {
351 auto lock = getLock(path)->asScopedLock();

Callers 1

deleteRecursivelyFunction · 0.85

Calls 3

getLockFunction · 0.85
asScopedLockMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected