/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/ |
H A D | single_ver_utils.cpp | 61 if (OS::CheckPathExistence(dbSubDir + DBConstant::PATH_POSTFIX_DB_INCOMPLETE)) { in ClearIncompleteDatabase() 75 if (OS::CheckPathExistence(option.subdir + "/" + item)) { in CreateNewDirsAndSetSecOption() 81 if (!OS::CheckPathExistence(option.subdir + DBConstant::PATH_POSTFIX_DB_INCOMPLETE) && in CreateNewDirsAndSetSecOption() 82 !OS::CheckPathExistence(option.subdir + "/" + DBConstant::SINGLE_VER_DATA_STORE + in CreateNewDirsAndSetSecOption() 120 if (!OS::CheckPathExistence(origDbFilePath) && !OS::CheckPathExistence(mainDbFilePath)) { in GetExistedSecOpt() 127 if (OS::CheckPathExistence(mainDbFilePath)) { in GetExistedSecOpt() 166 if (!OS::CheckPathExistence(origDbFilePath) && !OS::CheckPathExistence(mainDbFilePath)) { in CheckStoreStatus() 171 if (OS::CheckPathExistence(mainDbFilePath)) { in CheckStoreStatus()
|
H A D | package_file.cpp | 484 bool targetExists = OS::CheckPathExistence(targetFile); in ExePackage() 557 if (!OS::CheckPathExistence(dirPath) && OS::MakeDBDirectory(dirPath) != E_OK) { in UnpackFile()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_storage_single_ver_upgrade_test.cpp | 230 if (OS::CheckPathExistence(g_cachedbPath)) { in CheckSecOpt() 235 if (OS::CheckPathExistence(g_metadbPath)) { in CheckSecOpt() 343 bool isDatabaseExists = OS::CheckPathExistence(dbPath); 388 bool isDatabaseExists = OS::CheckPathExistence(dbPath); 438 bool isDatabaseExists = OS::CheckPathExistence(dbPath); 496 bool isDatabaseExists = OS::CheckPathExistence(dbPath); 536 bool isDatabaseExists = OS::CheckPathExistence(dbPath); 571 bool isDatabaseExists = OS::CheckPathExistence(dbPath); 615 EXPECT_FALSE(OS::CheckPathExistence(upgradeLockFileDir)); 626 EXPECT_TRUE(OS::CheckPathExistence(dbPath)); [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_single_ver_database_upgrader.cpp | 102 if (OS::CheckPathExistence(upgradeLockFile)) { in TransferDatabasePath() 105 if (OS::CheckPathExistence(dbFilePath)) { in TransferDatabasePath() 142 if (errCode == E_OK && OS::CheckPathExistence(secOptUpgradeFile) && in EndUpgrade() 216 …if (!OS::CheckPathExistence(secOptUpgradeFile) && (OS::CreateFileByFileName(secOptUpgradeFile) != … in UpgradeFromDatabaseVersion() 248 if ((!OS::CheckPathExistence(secOptUpgradeFile)) && isOpenS3SECE) { in SetMetaUpgrade() 278 if (OS::CheckPathExistence(dbFilePath) && isWithChecked) { in SetPathSecOptWithCheck() 292 if (!OS::CheckPathExistence(dbItemFilePath)) { in SetPathSecOptWithCheck() 314 if (OS::CheckPathExistence(secOptUpgradeFile) && !ParamCheckUtils::IsS3SECEOpt(secOption)) { in SetSecOption() 341 if (OS::CheckPathExistence(secOptUpgradeFile) && (OS::RemoveFile(secOptUpgradeFile) != E_OK)) { in SetSecOption() 356 if (OS::CheckPathExistence(oldDbPath)) { in MoveDatabaseToNewDir()
|
H A D | sqlite_single_ver_storage_engine.cpp | 462 …!OS::CheckPathExistence(GetDbDir(option_.subdir, DbType::CACHE) + "/" + DBConstant::SINGLE_VER_CAC… in ExecuteMigrate() 593 …if (OS::CheckPathExistence(GetDbDir(option_.subdir, DbType::CACHE) + "/" + DBConstant::SINGLE_VER_… in TryToOpenMainDatabase() 620 OS::CheckPathExistence(cacheDbPath)) { in GetDbHandle() 677 …if (!OS::CheckPathExistence(mainDbPtah)) { // Whether to create a cacheDb is based on whether the … in GetCacheDbHandle() 789 if (OS::CheckPathExistence(option_.subdir + DBConstant::PATH_POSTFIX_DB_INCOMPLETE) && in EndCreateExecutor() 965 if (!option.createIfNecessary && !OS::CheckPathExistence(metaDbPath)) { in AttachMetaDatabase()
|
H A D | sqlite_multi_ver_data_storage.cpp | 82 isDbExisted = OS::CheckPathExistence(uri); in GetVersion()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/operation/ |
H A D | database_oper.cpp | 102 bool isPreCtrlFileExist = OS::CheckPathExistence(preCtrlFileName); in RekeyRecover() 105 bool isEndCtrlFileExist = OS::CheckPathExistence(endCtrlFileName); in RekeyRecover() 108 bool isPrimeDbDirExist = OS::CheckPathExistence(currentDir); in RekeyRecover() 111 bool isBackupDbDirExist = OS::CheckPathExistence(backupDir); in RekeyRecover() 337 if (!OS::CheckPathExistence(dir)) { // LCOV_EXCL_BR_LINE in RemoveDbDir() 365 if (!OS::CheckPathExistence(fileName)) { in RemoveFile() 461 if (!OS::CheckPathExistence(backupDir)) { in RecoverImportedBackFiles() 511 bool isOriKeepFileExist = OS::CheckPathExistence(oriKeepFile); in ClearImportTempFile() 514 bool isBakKeepFileExist = OS::CheckPathExistence(backKeepFile); in ClearImportTempFile() 518 bool isBackupDbDirExist = OS::CheckPathExistence(backupDir); in ClearImportTempFile()
|
H A D | single_ver_database_oper.cpp | 200 if (!OS::CheckPathExistence(currentDb)) { // Is S2 label, can access in ExportMetaDB() 247 if (OS::CheckPathExistence(currentMetaFile)) { in BackupDatabase() 340 bool isMainDbExisted = OS::CheckPathExistence(unpackedMainFile); in ImportUnpackedMainDatabase() 341 …bool isOldMainDbExisted = OS::CheckPathExistence(unpackedOldMainFile); // version < 3, mainDb in s… in ImportUnpackedMainDatabase() 386 bool metaDbExisted = OS::CheckPathExistence(unpackedMetaFile); in ImportUnpackedDatabase() 450 if (!OS::CheckPathExistence(currentMetaDb)) { in RunExportLogic()
|
H A D | multi_ver_database_oper.cpp | 154 if (OS::CheckPathExistence(versionFile)) { in ExportAllDatabases()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/ |
H A D | kv_store_delegate_impl.cpp | 357 if (!OS::CheckPathExistence(canonicalUrl)) { in Export() 362 if (OS::CheckPathExistence(canonicalUrl)) { in Export() 392 if (!OS::CheckPathExistence(canonicalUrl)) { in Import()
|
H A D | kv_store_nb_delegate_impl.cpp | 703 if (!OS::CheckPathExistence(canonicalUrl)) { in Export() 708 if (!force && OS::CheckPathExistence(canonicalUrl)) { in Export() 737 if (!OS::CheckPathExistence(canonicalUrl)) { in Import()
|
H A D | kv_store_delegate_manager.cpp | 178 if (!OS::CheckPathExistence(canonicalDir)) { in SetKvStoreConfig()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/ |
H A D | platform_specific.h | 46 bool CheckPathExistence(const std::string &filePath);
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/kv/ |
H A D | kvdb_utils.cpp | 55 if (OS::CheckPathExistence(dbFileName)) { in RemoveKvDB()
|
H A D | kvdb_manager.cpp | 86 if (OS::CheckPathExistence(storeDir)) { in CreateRemoveStateFlagFile() 105 if (OS::CheckPathExistence(storeDir)) { in CheckRemoveStateAndRetry() 109 if (OS::CheckPathExistence(storeDir)) { in CheckRemoveStateAndRetry() 646 if (OS::CheckPathExistence(lockFile)) { in RemoveDatabase()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | db_common.cpp | 78 bool isExisted = OS::CheckPathExistence(directory); in CreateDirectory() 204 if (!OS::CheckPathExistence(newDir)) { in CreateStoreDirectory() 279 bool isExisted = OS::CheckPathExistence(dir); in RemoveAllFilesOfDirectory() 292 if (OS::CheckPathExistence(dir) && OS::RemoveDBDirectory(dir) != 0) { in RemoveAllFilesOfDirectory()
|
H A D | platform_specific.cpp | 53 bool CheckPathExistence(const std::string &filePath) in CheckPathExistence() function 378 bool CheckPathExistence(const std::string &filePath)
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/kv/ |
H A D | sqlite_local_kvdb.cpp | 218 isDbExisted = OS::CheckPathExistence(option.uri); in GetVersion() 231 bool isDbExisted = OS::CheckPathExistence(option.uri); in SetVersion()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/common/ |
H A D | distributeddb_common_test.cpp | 98 EXPECT_EQ(OS::CheckPathExistence(g_testDir), false); 202 …while (retryTimes >= 0 && !OS::CheckPathExistence(g_testDir + "/LOCK_step_" + std::to_string(step)… in waitForStep() 276 EXPECT_FALSE(OS::CheckPathExistence(g_testDir + "/LOCK_step_1"));
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | process_system_api_adapter_impl.cpp | 63 bool isExisted = OS::CheckPathExistence(filePath); in SetSecurityOption()
|
H A D | distributeddb_interfaces_database_test.cpp | 792 ASSERT_EQ(OS::CheckPathExistence(dataBaseDir), false); 796 ASSERT_EQ(OS::CheckPathExistence(storeIdOnlyIdDataBaseDir), false); 1395 ASSERT_EQ(OS::CheckPathExistence(dataBaseDir), false);
|
H A D | distributeddb_interfaces_database_rd_kernel_test.cpp | 784 ASSERT_EQ(OS::CheckPathExistence(dataBaseDir), false);
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/gaussdb_rd/ |
H A D | rd_single_ver_storage_engine.cpp | 73 if (OS::CheckPathExistence(option_.subdir + DBConstant::PATH_POSTFIX_DB_INCOMPLETE) && in CreateNewExecutor()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/common/ |
H A D | distributeddb_tools_test.cpp | 78 bool isExisted = OS::CheckPathExistence(dir); in RemoveTestDbFiles()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/multiver/ |
H A D | multi_ver_natural_store.cpp | 1004 if (!OS::CheckPathExistence(verFilePath)) { in InitStorageContextVersion() 1153 if (!OS::CheckPathExistence(verFilePath)) { in CheckOverallVersionViaVersionFile()
|