MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / GetCachedFileId

Method GetCachedFileId

src/providers/google_drive.cpp:104–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104std::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
113void GoogleDriveProvider::InvalidateFolderById(const std::string& folderId) {
114 std::lock_guard<std::recursive_mutex> lock(m_folderMtx);

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected