| 102 | } |
| 103 | |
| 104 | std::string GoogleDriveProvider::GetCachedFileId(const std::string& name, |
| 105 | const std::string& folderId) { |
| 106 | auto key = BuildChildCacheKey(folderId, name); |
| 107 | if (key.empty()) return {}; |
| 108 | std::lock_guard<std::recursive_mutex> lock(m_folderMtx); |
| 109 | auto it = m_files.find(key); |
| 110 | return it == m_files.end() ? std::string() : it->second; |
| 111 | } |
| 112 | |
| 113 | void GoogleDriveProvider::InvalidateFolderById(const std::string& folderId) { |
| 114 | std::lock_guard<std::recursive_mutex> lock(m_folderMtx); |