| 98 | bool HalStorage::rmdir(const char* path) { HAL_STORAGE_WRAPPED_CALL(rmdir, path); } |
| 99 | |
| 100 | bool HalStorage::openFileForRead(const char* moduleName, const char* path, HalFile& file) { |
| 101 | StorageLock lock; // ensure thread safety for the duration of this function |
| 102 | FsFile fsFile; |
| 103 | bool ok = SDCard.openFileForRead(moduleName, path, fsFile); |
| 104 | file = HalFile(std::make_unique<HalFile::Impl>(std::move(fsFile))); |
| 105 | return ok; |
| 106 | } |
| 107 | |
| 108 | bool HalStorage::openFileForRead(const char* moduleName, const std::string& path, HalFile& file) { |
| 109 | return openFileForRead(moduleName, path.c_str(), file); |
no test coverage detected