MCPcopy Create free account
hub / github.com/Tencent/TAD_Sim / isFileExists

Function isFileExists

common/map_sdk/mapdb/src/sqlite_operation.cpp:34–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32static const uint16_t id_max_len = 22;
33#define kIdMaxLen (id_max_len + 1)
34static bool isFileExists(const std::string& filePath) {
35 std::ifstream fin(filePath.c_str());
36 if (!fin) {
37 std::cerr << filePath << " not exists" << std::endl;
38 return false;
39 }
40 return true;
41}
42
43struct sqlite3_blob_data {
44 unsigned char* data;

Callers 1

connectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected