Home
last modified time | relevance | path

Searched refs:tempDir (Results 1 - 11 of 11) sorted by relevance

/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dbundle_util.cpp388 std::string BundleUtil::CreateTempDir(const std::string &tempDir) in CreateTempDir() argument
390 if (!OHOS::ForceCreateDirectory(tempDir)) { in CreateTempDir()
391 APP_LOGE("mkdir %{public}s failed", tempDir.c_str()); in CreateTempDir()
394 if (chown(tempDir.c_str(), Constants::FOUNDATION_UID, ServiceConstants::BMS_GID) != 0) { in CreateTempDir()
395 APP_LOGE("fail to change %{public}s ownership errno:%{public}d", tempDir.c_str(), errno); in CreateTempDir()
399 if (!OHOS::ChangeModeFile(tempDir, mode)) { in CreateTempDir()
400 APP_LOGE("change mode failed, temp install dir : %{public}s", tempDir.c_str()); in CreateTempDir()
403 return tempDir; in CreateTempDir()
409 std::string tempDir = ServiceConstants::HAP_COPY_PATH; in CreateInstallTempDir() local
412 tempDir in CreateInstallTempDir()
440 std::string tempDir = ServiceConstants::HAP_COPY_PATH; CreateSharedBundleTempDir() local
[all...]
H A Dbundle_stream_installer_host_impl.cpp44 std::string tempDir = BundleUtil::CreateInstallTempDir(installerId_, DirType::STREAM_INSTALL_DIR); in Init() local
45 if (tempDir.empty()) { in Init()
46 APP_LOGE("tempDir is empty"); in Init()
49 tempDir_ = tempDir; in Init()
54 tempDir = BundleUtil::CreateSharedBundleTempDir(installerId_, i); in Init()
55 if (tempDir.empty()) { in Init()
59 installParam_.sharedBundleDirPaths.emplace_back(tempDir); in Init()
H A Dzip_file.cpp259 auto tempDir = dir; in IsDirExist() local
260 if (tempDir.back() != ServiceConstants::FILE_SEPARATOR_CHAR) { in IsDirExist()
261 tempDir.push_back(ServiceConstants::FILE_SEPARATOR_CHAR); in IsDirExist()
265 if (item.first.find(tempDir) == 0) { in IsDirExist()
H A Dbase_bundle_installer.cpp4789 std::string tempDir = GetTempHapPath(item.second); in SaveHapPathToRecords() local
4790 if (tempDir.empty()) { in SaveHapPathToRecords()
4794 LOG_D(BMS_TAG_INSTALLER, "tempDir is %{public}s", tempDir.c_str()); in SaveHapPathToRecords()
4795 hapPathRecords_.emplace(item.first, tempDir); in SaveHapPathToRecords()
5488 std::string tempDir = hapPath.substr(0, posOfPathSep + 1) + info.GetCurrentModulePackage(); in GetTempHapPath() local
5490 tempDir += ServiceConstants::TMP_SUFFIX; in GetTempHapPath()
5493 return tempDir.append(hapPath.substr(posOfPathSep)); in GetTempHapPath()
5799 std::string tempDir; in RemoveTempPathOnlyUsedForSo() local
5800 tempDir in RemoveTempPathOnlyUsedForSo()
[all...]
H A Dbundle_mgr_service_event_handler.cpp131 std::string tempDir = in MoveTempPath() local
133 if (!BundleUtil::CreateDir(tempDir)) { in MoveTempPath()
134 LOG_E(BMS_TAG_DEFAULT, "create tempdir failed %{public}s", tempDir.c_str()); in MoveTempPath()
140 auto toPath = tempDir + ServiceConstants::PATH_SEPARATOR + MODULE_PREFIX in MoveTempPath()
171 std::string tempDir = std::string(ServiceConstants::HAP_COPY_PATH) variable
173 LOG_D(BMS_TAG_DEFAULT, "delete tempDir %{public}s", tempDir.c_str());
174 BundleUtil::DeleteDir(tempDir);
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dkey_backup.cpp364 int32_t KeyBackup::CopySameFilesToTempDir(const std::string &backupDir, std::string &tempDir, in CopySameFilesToTempDir() argument
367 LOGI("copy same files to temp dir, backupDir: %s tempDir: %s", backupDir.c_str(), tempDir.c_str()); in CopySameFilesToTempDir()
368 int32_t ret = CreateTempDirForMixFiles(backupDir, tempDir); in CopySameFilesToTempDir()
375 ret = CheckAndCopyOneFile(iter->origFile, tempDir + "/" + iter->baseName); in CopySameFilesToTempDir()
377 RemoveNode(tempDir); in CopySameFilesToTempDir()
382 ret = CheckAndCopyOneFile(iter->backFile, tempDir + "/" + iter->baseName); in CopySameFilesToTempDir()
384 RemoveNode(tempDir); in CopySameFilesToTempDir()
395 int32_t KeyBackup::CreateTempDirForMixFiles(const std::string &backupDir, std::string &tempDir) in CreateTempDirForMixFiles() argument
399 tempDir in CreateTempDirForMixFiles()
422 CopyMixFilesToTempDir(uint32_t diffNum, uint32_t num, const std::string &tempDir, const std::vector<struct FileNode> &fileList) CopyMixFilesToTempDir() argument
[all...]
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/
H A Dsoftbus_handler_asset.cpp354 std::string tempDir; in GetDstFile() local
356 tempDir = ASSET_POSTFIX_SINGLE; in GetDstFile()
358 tempDir = ASSET_POSTFIX_ZIP; in GetDstFile()
361 << tempDir << "srcBundleName=" << srcBundleName << "&sessionId=" << sessionId; in GetDstFile()
370 auto tempDir = dstBundleName + "/" + TEMP_DIR; in GenerateUris() local
375 size_t posPrefix = file.find(tempDir); in GenerateUris()
377 LOGE("not find tempDir in fileList."); in GenerateUris()
386 << file.substr(posPrefix + tempDir.length(), posPostfix - posPrefix - tempDir.length()); in GenerateUris()
392 size_t posPrefix = file.find(tempDir); in GenerateUris()
[all...]
/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/
H A Dkey_backup.h83 int32_t CopySameFilesToTempDir(const std::string &backupDir, std::string &tempDir,
85 int32_t CreateTempDirForMixFiles(const std::string &backupDir, std::string &tempDir);
87 int32_t CopyMixFilesToTempDir(uint32_t diffNum, uint32_t num, const std::string &tempDir,
/foundation/ability/ability_runtime/frameworks/native/appkit/app/
H A Dapplication_cleaner.cpp205 std::string tempDir = filePath + std::string(ptr->d_name); in TraverseObsoleteTempDirectory() local
206 tempDirs.emplace_back(tempDir); in TraverseObsoleteTempDirectory()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Dbundle_util.h204 static std::string CreateTempDir(const std::string &tempDir);
/foundation/ability/ability_runtime/test/unittest/frameworks_kits_appkit_native_test/
H A Dcontext_impl_test.cpp356 auto tempDir = contextImpl->GetTempDir(); in HWTEST_F() local
357 EXPECT_EQ(tempDir, "/data/storage/el2/base/temp"); in HWTEST_F()

Completed in 24 milliseconds