Home
last modified time | relevance | path

Searched refs:CheckPathExistence (Results 1 – 25 of 27) sorted by relevance

12

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/
H A Dsingle_ver_utils.cpp61 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 Dpackage_file.cpp484 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 Ddistributeddb_storage_single_ver_upgrade_test.cpp230 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 Dsqlite_single_ver_database_upgrader.cpp102 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 Dsqlite_single_ver_storage_engine.cpp462 …!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 Dsqlite_multi_ver_data_storage.cpp82 isDbExisted = OS::CheckPathExistence(uri); in GetVersion()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/operation/
H A Ddatabase_oper.cpp102 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 Dsingle_ver_database_oper.cpp200 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 Dmulti_ver_database_oper.cpp154 if (OS::CheckPathExistence(versionFile)) { in ExportAllDatabases()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/
H A Dkv_store_delegate_impl.cpp357 if (!OS::CheckPathExistence(canonicalUrl)) { in Export()
362 if (OS::CheckPathExistence(canonicalUrl)) { in Export()
392 if (!OS::CheckPathExistence(canonicalUrl)) { in Import()
H A Dkv_store_nb_delegate_impl.cpp703 if (!OS::CheckPathExistence(canonicalUrl)) { in Export()
708 if (!force && OS::CheckPathExistence(canonicalUrl)) { in Export()
737 if (!OS::CheckPathExistence(canonicalUrl)) { in Import()
H A Dkv_store_delegate_manager.cpp178 if (!OS::CheckPathExistence(canonicalDir)) { in SetKvStoreConfig()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/
H A Dplatform_specific.h46 bool CheckPathExistence(const std::string &filePath);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/kv/
H A Dkvdb_utils.cpp55 if (OS::CheckPathExistence(dbFileName)) { in RemoveKvDB()
H A Dkvdb_manager.cpp86 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 Ddb_common.cpp78 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 Dplatform_specific.cpp53 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 Dsqlite_local_kvdb.cpp218 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 Ddistributeddb_common_test.cpp98 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 Dprocess_system_api_adapter_impl.cpp63 bool isExisted = OS::CheckPathExistence(filePath); in SetSecurityOption()
H A Ddistributeddb_interfaces_database_test.cpp792 ASSERT_EQ(OS::CheckPathExistence(dataBaseDir), false);
796 ASSERT_EQ(OS::CheckPathExistence(storeIdOnlyIdDataBaseDir), false);
1395 ASSERT_EQ(OS::CheckPathExistence(dataBaseDir), false);
H A Ddistributeddb_interfaces_database_rd_kernel_test.cpp784 ASSERT_EQ(OS::CheckPathExistence(dataBaseDir), false);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/gaussdb_rd/
H A Drd_single_ver_storage_engine.cpp73 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 Ddistributeddb_tools_test.cpp78 bool isExisted = OS::CheckPathExistence(dir); in RemoveTestDbFiles()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/multiver/
H A Dmulti_ver_natural_store.cpp1004 if (!OS::CheckPathExistence(verFilePath)) { in InitStorageContextVersion()
1153 if (!OS::CheckPathExistence(verFilePath)) { in CheckOverallVersionViaVersionFile()

12