| 354 | } |
| 355 | |
| 356 | bool 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 | |
| 363 | bool readLines(const std::string& filePath, bool stripNewLine, std::function<void(const char* line)> callback) { |
| 364 | auto lock = getLock(filePath)->asScopedLock(); |
no test coverage detected