/ohos5.0/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/ |
H A D | untar_file.cpp | 101 errFileInfo[info.fullPath].push_back(ret); in ReadLongName() 106 errFileInfo[info.fullPath].push_back(errno); in ReadLongName() 179 info.fullPath = realName; in HandleTarBuffer() 338 info.fullPath = GenRealPath(rootPath_, info.fullPath); in ParseFileByTypeFlag() 349 info.fullPath = GenRealPath(rootPath_, info.fullPath); in ParseFileByTypeFlag() 390 info.fullPath = GenRealPath(rootPath_, info.fullPath); in DealFileTag() 391 if (BDir::CheckFilePathInvalid(info.fullPath)) { in DealFileTag() 405 string tmpFullPath = info.fullPath; in ParseIncrementalFileByTypeFlag() 420 info.fullPath = GenRealPath(rootPath_, info.fullPath); in ParseIncrementalFileByTypeFlag() 452 FILE *destFile = CreateFile(info.fullPath); in ParseRegularFile() [all …]
|
/ohos5.0/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/ |
H A D | dmesg_catcher.cpp | 103 std::string fullPath = FULL_DIR + "sysrq-" + sysrqTime + ".log"; in DmesgSaveTofile() local 105 if (FileUtil::FileExists(fullPath)) { in DmesgSaveTofile() 106 HIVIEW_LOGW("filename: %{public}s is existed, direct use.", fullPath.c_str()); in DmesgSaveTofile() 107 return fullPath; in DmesgSaveTofile() 110 auto fd = open(fullPath.c_str(), O_CREAT | O_WRONLY | O_TRUNC, DEFAULT_LOG_FILE_MODE); in DmesgSaveTofile() 112 HIVIEW_LOGI("Fail to create %s.", fullPath.c_str()); in DmesgSaveTofile() 124 return fullPath; in DmesgSaveTofile() 137 std::string fullPath = DmesgSaveTofile(); in Catch() local 138 if (fullPath.empty()) { in Catch() 141 description_ += "fullPath:" + fullPath + "\n"; in Catch()
|
/ohos5.0/commonlibrary/utils_lite/js/builtin/filekit/src/ |
H A D | nativeapi_fs_impl.c | 78 if (fullPath == NULL) { in RmdirRecursive() 92 if (stat(fullPath, &info) != 0) { in RmdirRecursive() 96 ret = RmdirRecursive(fullPath); in RmdirRecursive() 98 ret = unlink(fullPath); in RmdirRecursive() 108 free(fullPath); in RmdirRecursive() 118 if (fullPath == NULL) { in MakeParent() 122 free(fullPath); in MakeParent() 135 free(fullPath); in MakeParent() 139 ret = mkdir(fullPath); in MakeParent() 145 free(fullPath); in MakeParent() [all …]
|
/ohos5.0/base/hiviewdfx/hiview/base/logstore/ |
H A D | log_file.cpp | 30 LogFile::LogFile(const std::string& fullPath) : path_(fullPath) in LogFile() argument 33 if ((fullPath.length() == 0) || (stat(fullPath.c_str(), &sb) == -1)) { in LogFile() 41 size_ = FileUtil::GetFolderSize(fullPath); in LogFile() 44 name_ = FileUtil::ExtractFileName(fullPath); in LogFile()
|
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/entrance/ |
H A D | utils.h | 48 std::string fullPath = prePath; in GenerateFullPath() local 49 if (fullPath.empty() || fullPath.back() == '/') { in GenerateFullPath() 50 fullPath += tmpPostPath; in GenerateFullPath() 52 fullPath += "/" + tmpPostPath; in GenerateFullPath() 54 return fullPath; in GenerateFullPath()
|
/ohos5.0/base/startup/appspawn/service/hnp/base/ |
H A D | hnp_zip.c | 132 if (!TransWidePath(fullPath, wideFullPath)) { in IsDirPath() 151 static int ZipHandleDir(char *fullPath, int offset, zipFile zf) in ZipHandleDir() argument 155 TransPath(fullPath, transPath); in ZipHandleDir() 163 ret = ZipAddDir(fullPath, offset, zf); in ZipHandleDir() 165 HNP_LOGE("zip add dir[%{public}s] unsuccess ", fullPath); in ZipHandleDir() 175 char fullPath[MAX_FILE_PATH_LEN]; in ZipAddDir() local 193 int ret = IsDirPath(entry, fullPath, &isDir); in ZipAddDir() 199 int endPos = strlen(fullPath); in ZipAddDir() 201 fullPath[endPos] = DIR_SPLIT_SYMBOL; in ZipAddDir() 202 fullPath[endPos + 1] = '\0'; in ZipAddDir() [all …]
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/base/ |
H A D | js_fwk_common.cpp | 464 if (fullPath == nullptr) { in RelocateFilePath() 468 fullPath[0] = '\0'; in RelocateFilePath() 479 fullPath[index] = '\0'; in RelocateFilePath() 480 return fullPath; in RelocateFilePath() 608 path = fullPath; in OpenFileInternal() 616 if (fullPath == nullptr || strlen(fullPath) == 0) { in OutputFileMaxLimitationTrace() 722 if (fullPath == nullptr) { in ReadJSFile() 729 ace_free(fullPath); in ReadJSFile() 730 fullPath = nullptr; in ReadJSFile() 738 ace_free(fullPath); in ReadJSFile() [all …]
|
/ohos5.0/foundation/resourceschedule/memmgr/services/memmgrservice/src/reclaim_strategy_manager/ |
H A D | memcg.cpp | 303 std::string fullPath = GetMemcgPath_(); in CreateMemcgDir() local 304 if (!KernelInterface::GetInstance().CreateDir(fullPath)) { in CreateMemcgDir() 305 HILOGE("failed. %{public}s", fullPath.c_str()); in CreateMemcgDir() 308 HILOGI("success. %{public}s", fullPath.c_str()); in CreateMemcgDir() 314 std::string fullPath = GetMemcgPath_(); in RemoveMemcgDir() local 315 if (!KernelInterface::GetInstance().RemoveDirRecursively(fullPath)) { in RemoveMemcgDir() 316 HILOGE("failed. %{public}s", fullPath.c_str()); in RemoveMemcgDir() 319 HILOGI("success. %{public}s", fullPath.c_str()); in RemoveMemcgDir() 332 bool ret = WriteToFile_(fullPath, std::to_string(pid), false); in AddProc() 335 bool fileExists = KernelInterface::GetInstance().IsFileExists(fullPath); in AddProc() [all …]
|
/ohos5.0/foundation/multimedia/media_foundation/src/osal/filesystem/ |
H A D | file_system.cpp | 123 void FileSystem::ClearFileContent(const std::string& fullPath) in ClearFileContent() argument 125 MEDIA_LOG_I("Clear file content path : " PUBLIC_LOG_S, fullPath.c_str()); in ClearFileContent() 126 auto filePtr = fopen(fullPath.c_str(), "w+"); in ClearFileContent() 143 std::string fullPath = path + "/" + info->d_name; in RemoveFilesInDir() local 144 MEDIA_LOG_D("Remove file : " PUBLIC_LOG_S, fullPath.c_str()); in RemoveFilesInDir() 145 NZERO_LOG(remove(fullPath.c_str())); in RemoveFilesInDir()
|
/ohos5.0/commonlibrary/utils_lite/js/builtin/kvstorekit/src/ |
H A D | nativeapi_kv_impl.c | 176 char* fullPath = (char *)malloc(FILE_NAME_MAX_LEN + 1); in ClearKVStore() local 177 if (fullPath == NULL) { in ClearKVStore() 185 if (memset_s(fullPath, FILE_NAME_MAX_LEN + 1, 0x0, FILE_NAME_MAX_LEN + 1) != EOK) { in ClearKVStore() 188 if (sprintf_s(fullPath, FILE_NAME_MAX_LEN + 1, "%s/%s", g_kvFolder, dir->d_name) < 0) { in ClearKVStore() 191 if (unlink(fullPath) != 0) { in ClearKVStore() 198 free(fullPath); in ClearKVStore()
|
/ohos5.0/foundation/multimedia/media_foundation/engine/foundation/osal/filesystem/ |
H A D | file_system.cpp | 121 void FileSystem::ClearFileContent(const std::string& fullPath) in ClearFileContent() argument 123 MEDIA_LOG_I("Clear file content path : " PUBLIC_LOG_S, fullPath.c_str()); in ClearFileContent() 124 auto filePtr = fopen(fullPath.c_str(), "w+"); in ClearFileContent() 141 std::string fullPath = path + "/" + info->d_name; in RemoveFilesInDir() local 142 MEDIA_LOG_D("Remove file : " PUBLIC_LOG_S, fullPath.c_str()); in RemoveFilesInDir() 143 NZERO_LOG(remove(fullPath.c_str())); in RemoveFilesInDir()
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/context/ |
H A D | js_app_context.cpp | 72 jerry_value_t JsAppContext::Eval(char *fullPath, size_t fullPathLength, bool isAppEval) const in Eval() argument 74 if ((fullPath == nullptr) || (fullPathLength == 0)) { in Eval() 83 char *jsCode = EvaluateFile(isSnapshotMode, contentLength, fullPath, fullPathLength); in Eval() 100 …jerry_value_t retValue = jerry_parse(reinterpret_cast<const jerry_char_t *>(fullPath), fullPathLen… in Eval() 134 char *fullPath, in EvaluateFile() argument 137 if (fullPath == nullptr || fullPathLength == 0) { in EvaluateFile() 141 size_t filePathLen = strlen(fullPath); in EvaluateFile() 146 char *jsCode = ReadFile(fullPath, outLength, isSnapshotMode); in EvaluateFile() 156 …if (strcpy_s((fullPath + (fullPathLength - fileSuffixLength)), (fileSuffixLength + 1), anotherSuff… in EvaluateFile() 162 jsCode = ReadFile(fullPath, outLength, isSnapshotMode); in EvaluateFile()
|
H A D | js_profiler.cpp | 222 char *fullPath = RelocateJSSourceFilePath(DEFAULT_PROFILER_MSG_PATH, fileName); in FlushProfilerMsg() local 223 if (fullPath == nullptr) { in FlushProfilerMsg() 228 int32_t fd = open(fullPath, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR); in FlushProfilerMsg() 231 ace_free(fullPath); in FlushProfilerMsg() 232 fullPath = nullptr; in FlushProfilerMsg() 247 ace_free(fullPath); in FlushProfilerMsg() 248 fullPath = nullptr; in FlushProfilerMsg()
|
/ohos5.0/foundation/multimedia/media_foundation/engine/foundation/utils/ |
H A D | dump_buffer.cpp | 73 std::string fullPath; in PrepareDumpDir() local 74 bool isFileExist = OSAL::ConvertFullPath(filePath, fullPath); in PrepareDumpDir() 76 OSAL::FileSystem::ClearFileContent(fullPath); in PrepareDumpDir() 79 auto realPath = realpath(fullPath.c_str(), path); in PrepareDumpDir() 83 …MEDIA_LOG_W("Open file(" PUBLIC_LOG_S ") failed(" PUBLIC_LOG_S ").", fullPath.c_str(), strerror(er… in PrepareDumpDir()
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/common/memory/ |
H A D | mem_proc.cpp | 61 char *fullPath = RelocateJSSourceFilePath(MEM_BACK_UP_LOG_FILE_PREFIX, markdata); in ClearUp() local 62 if (fullPath == nullptr) { in ClearUp() 65 rename(MEM_LOG_FILE_PATH, fullPath); in ClearUp() 66 ace_free(fullPath); in ClearUp() 67 fullPath = nullptr; in ClearUp()
|
/ohos5.0/base/theme/wallpaper_mgr/utils/src/ |
H A D | file_deal.cpp | 97 std::string fullPath = path; in DeleteDir() local 99 fullPath += '/'; in DeleteDir() 101 fullPath += dirent->d_name; in DeleteDir() 103 if (!DeleteDir(fullPath)) { in DeleteDir() 107 } else if (remove(fullPath.c_str()) < 0) { in DeleteDir() 108 …HILOG_ERROR("remove failed, fullPath=%{public}s, errInfo=%{public}s", fullPath.c_str(), strerror(e… in DeleteDir()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/loader/ |
H A D | render_data_loader.cpp | 45 const string fullPath = pathPrefix + RENDER_CONFIG_PATH; in Load() local 46 if (auto const path = fileManager_.OpenDirectory(fullPath); path) { in Load() 47 const string currentPath = fullPath + string_view(POST_PROCESS_PATH) + '/'; in Load() 55 PLUGIN_LOG_E("render configuration files path (%s) not found.", fullPath.c_str()); in Load()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/common/log/src/ |
H A D | app_log_wrapper.cpp | 34 std::string fullPath(str); in GetBriefFileName() local 35 size_t pos = fullPath.find_last_of("/"); in GetBriefFileName() 39 return fullPath.substr(pos + 1); in GetBriefFileName()
|
/ohos5.0/foundation/ability/ability_runtime/interfaces/inner_api/wantagent/src/ |
H A D | want_agent_log_wrapper.cpp | 36 std::string fullPath(str); in GetBriefFileName() local 37 size_t pos = fullPath.find_last_of("/"); in GetBriefFileName() 41 return fullPath.substr(pos + 1); in GetBriefFileName()
|
/ohos5.0/foundation/resourceschedule/device_usage_statistics/utils/src/ |
H A D | bundle_active_log.cpp | 35 std::string fullPath(str); in GetCurrFileName() local 36 size_t pos = fullPath.find_last_of("/"); in GetCurrFileName() 40 return fullPath.substr(pos + 1); in GetCurrFileName()
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/common/src/ |
H A D | ans_log_wrapper.cpp | 32 std::string fullPath(str); in GetBriefFileName() local 33 size_t pos = fullPath.find_last_of("/"); in GetBriefFileName() 37 return fullPath.substr(pos + 1); in GetBriefFileName()
|
/ohos5.0/foundation/resourceschedule/device_standby/utils/policy/src/ |
H A D | json_utils.cpp | 195 std::string fullPath; in GetFileContent() local 196 if (!GetRealPath(filePath, fullPath)) { in GetFileContent() 199 … STANDBYSERVICE_LOGD("full path of standby service config file is: %{public}s ", fullPath.c_str()); in GetFileContent() 200 std::ifstream fin(fullPath); in GetFileContent() 210 bool JsonUtils::GetRealPath(const std::string& partialPath, std::string& fullPath) in GetRealPath() argument 216 fullPath = tmpPath; in GetRealPath()
|
/ohos5.0/base/update/updater/services/ |
H A D | updater.cpp | 368 void ExcuteSubProc(const UpdaterParams &upParams, const std::string &fullPath, int pipeWrite) in ExcuteSubProc() argument 385 execl(fullPath.c_str(), fullPath.c_str(), upParams.updatePackage[upParams.pkgLocation].c_str(), in ExcuteSubProc() 458 std::string fullPath = GetWorkPath() + std::string(UPDATER_BINARY); in StartUpdaterProc() local 459 (void)Utils::DeleteFile(fullPath); in StartUpdaterProc() 463 fullPath = "/bin/updater_binary"; in StartUpdaterProc() 467 fullPath = "/data/updater/updater_binary"; in StartUpdaterProc() 470 if (chmod(fullPath.c_str(), S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH) != 0) { in StartUpdaterProc() 475 Restorecon(fullPath.c_str()); in StartUpdaterProc() 490 ExcuteSubProc(upParams, fullPath, pipeWrite); in StartUpdaterProc()
|
/ohos5.0/foundation/filemanagement/dfs_service/utils/log/src/ |
H A D | utils_log.cpp | 21 std::string fullPath(str); in GetFileNameFromFullPath() local 22 size_t pos = fullPath.find_last_of("/"); in GetFileNameFromFullPath() 23 return (pos == std::string::npos) ? std::string() : fullPath.substr(pos + 1); in GetFileNameFromFullPath()
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/router/ |
H A D | js_page_state_machine.cpp | 236 char *fullPath = RelocateJSSourceFilePath(appRootPath_, jsPagePath_); in CheckJSSourceFile() local 237 if (fullPath == nullptr) { in CheckJSSourceFile() 243 size_t pathLength = strlen(fullPath); in CheckJSSourceFile() 249 result = (GetFileSize(fullPath) > 0); in CheckJSSourceFile() 257 …if (strcpy_s((fullPath + (pathLength - fileSuffixLength)), (fileSuffixLength + 1), anotherSuffix) … in CheckJSSourceFile() 260 result = (GetFileSize(fullPath) > 0); in CheckJSSourceFile() 263 ace_free(fullPath); in CheckJSSourceFile() 264 fullPath = nullptr; in CheckJSSourceFile()
|