/base/update/updater/services/applypatch/ |
D | store.cpp | 47 int32_t Store::FreeStore(const std::string &dirPath, const std::string &fileName) in FreeStore() argument 49 if (dirPath.empty() || fileName.empty()) { in FreeStore() 52 std::string path = dirPath + "/" + fileName; in FreeStore() 65 std::string dirPath = path + '/'; in CreateNewSpace() local 67 LOG(INFO) << "Create dir " << dirPath; in CreateNewSpace() 68 if (stat(dirPath.c_str(), &fileStat) == -1) { in CreateNewSpace() 73 if (MkdirRecursive(dirPath, S_IRWXU) != 0) { in CreateNewSpace() 82 if (GetFilesFromDirectory(dirPath, files) < 0) { in CreateNewSpace() 100 int32_t Store::WriteDataToStore(const std::string &dirPath, const std::string &fileName, in WriteDataToStore() argument 103 if (dirPath.empty()) { in WriteDataToStore() [all …]
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/ |
D | hiappevent_write.cpp | 85 std::string dirPath = GetStorageDirPath(); in WriteEvent() local 86 if (dirPath.empty()) { in WriteEvent() 94 if (!FileUtil::IsFileExists(dirPath) && !FileUtil::ForceCreateDirectory(dirPath)) { in WriteEvent() 98 CheckStorageSpace(dirPath); in WriteEvent() 99 std::string filePath = FileUtil::GetFilePathByDir(dirPath, GetStorageFileName()); in WriteEvent()
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/observer/ |
D | os_event_listener.cpp | 111 bool OsEventListener::InitDir(const std::string& dirPath) in InitDir() argument 113 if (!FileUtil::IsFileExists(dirPath) && !FileUtil::ForceCreateDirectory(dirPath)) { in InitDir() 114 HILOG_ERROR(LOG_CORE, "failed to create dir=%{public}s", dirPath.c_str()); in InitDir() 117 if (OHOS::StorageDaemon::AclSetAccess(dirPath, "g:1201:rwx") != 0) { in InitDir() 118 HILOG_ERROR(LOG_CORE, "failed to set acl access dir=%{public}s", dirPath.c_str()); in InitDir() 124 bool OsEventListener::RegisterDirListener(const std::string& dirPath) in RegisterDirListener() argument 129 … HILOG_ERROR(LOG_CORE, "failed to inotify init : %s(%s).\n", strerror(errno), dirPath.c_str()); in RegisterDirListener() 132 inotifyWd_ = inotify_add_watch(inotifyFd_, dirPath.c_str(), IN_MOVED_TO | IN_CLOSE_WRITE); in RegisterDirListener() 134 … HILOG_ERROR(LOG_CORE, "failed to add watch entry : %s(%s).\n", strerror(errno), dirPath.c_str()); in RegisterDirListener() 139 HILOG_INFO(LOG_CORE, "inotify add watch dir=%{public}s successfully", dirPath.c_str()); in RegisterDirListener()
|
/base/update/updater/services/include/applypatch/ |
D | store.h | 30 static int32_t FreeStore(const std::string &dirPath, const std::string &fileName); 32 static int32_t WriteDataToStore(const std::string &dirPath, const std::string &fileName, 35 static int32_t LoadDataFromStore(const std::string &dirPath, const std::string &fileName,
|
/base/startup/appspawn/util/src/ |
D | appspawn_utils.c | 301 void DumpCurrentDir(char *buffer, uint32_t bufferLen, const char *dirPath) in DumpCurrentDir() argument 304 APPSPAWN_CHECK_ONLY_EXPER(dirPath != NULL, return); in DumpCurrentDir() 314 if (stat(dirPath, &st) == 0 && S_ISREG(st.st_mode)) { in DumpCurrentDir() 315 APPSPAWN_LOGW("file %{public}s", dirPath); in DumpCurrentDir() 316 if (access(dirPath, F_OK) != 0) { in DumpCurrentDir() 317 APPSPAWN_LOGW("file %{public}s not exist", dirPath); in DumpCurrentDir() 322 DIR *pDir = opendir(dirPath); in DumpCurrentDir() 323 APPSPAWN_CHECK(pDir != NULL, return, "Read dir :%{public}s failed.%{public}d", dirPath, errno); in DumpCurrentDir() 331 APPSPAWN_LOGW(" Current path %{public}s/%{public}s ", dirPath, dp->d_name); in DumpCurrentDir() 332 ret = snprintf_s(buffer, bufferLen, bufferLen - 1, "%s/%s", dirPath, dp->d_name); in DumpCurrentDir()
|
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/include/ |
D | data_share_store.h | 31 DataShareStore(std::string dirPath): dbStore_(nullptr), dirPath_(dirPath){}; in DataShareStore() argument
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/observer/include/ |
D | os_event_listener.h | 38 bool InitDir(const std::string& dirPath); 39 bool RegisterDirListener(const std::string& dirPath);
|
/base/web/webview/ohos_glue/ohos_nweb/bridge/ |
D | ark_web_nweb_bridge_helper.cpp | 47 std::string dirPath = GetDirPath(runMode, baseDir); in Init() 48 std::string libFilePath = dirPath + "/" + LIB_FILE_NAME; in Init()
|
/base/hiviewdfx/hiview/adapter/service/idl/src/ |
D | hiview_service_agent.cpp | 181 bool HiviewServiceAgent::CreateAndGrantAclPermission(const std::string& dirPath) in CreateAndGrantAclPermission() argument 183 if (!FileUtil::FileExists(dirPath) && !FileUtil::ForceCreateDirectory(dirPath)) { in CreateAndGrantAclPermission() 187 if (OHOS::StorageDaemon::AclSetAccess(dirPath, "g:1201:rwx") != 0) { in CreateAndGrantAclPermission()
|
D | hiview_service_ability.cpp | 170 void HiviewServiceAbility::GetFileInfoUnderDir(const std::string& dirPath, std::vector<HiviewFileIn… in GetFileInfoUnderDir() argument 172 DIR* dir = opendir(dirPath.c_str()); in GetFileInfoUnderDir() 182 std::string filePath(dirPath + ent->d_name); in GetFileInfoUnderDir()
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
D | cm_event_process.c | 128 static int32_t RemoveDir(const char *dirPath) in RemoveDir() argument 131 int32_t ret = stat(dirPath, &fileStat); in RemoveDir() 140 DIR *dir = opendir(dirPath); in RemoveDir() 148 ret = CmFileRemove(dirPath, dire->d_name); in RemoveDir() 156 (void)remove(dirPath); in RemoveDir()
|
/base/startup/init/services/utils/ |
D | init_utils.c | 529 int ReadFileInDir(const char *dirPath, const char *includeExt, in ReadFileInDir() argument 532 INIT_CHECK_RETURN_VALUE(dirPath != NULL && processFile != NULL, -1); in ReadFileInDir() 533 DIR *pDir = opendir(dirPath); in ReadFileInDir() 534 INIT_ERROR_CHECK(pDir != NULL, return -1, "Read dir :%s failed.%d", dirPath, errno); in ReadFileInDir() 537 return -1, "Failed to malloc for %s", dirPath); in ReadFileInDir() 554 … int ret = snprintf_s(fileName, MAX_BUF_SIZE, MAX_BUF_SIZE - 1, "%s/%s", dirPath, dp->d_name); in ReadFileInDir() 565 INIT_LOGV("ReadFileInDir dirPath %s %d", dirPath, count); in ReadFileInDir()
|
/base/security/huks/utils/file_operator/ |
D | hks_file_operator_lite.c | 257 int32_t HksRemoveDir(const char *dirPath) in HksRemoveDir() argument 260 int32_t ret = stat(dirPath, &fileStat); in HksRemoveDir() 271 DIR *dir = opendir(dirPath); in HksRemoveDir() 277 ret = HksFileRemove(dirPath, dire->d_name); in HksRemoveDir()
|
D | hks_file_operator.h | 95 int32_t HksRemoveDir(const char *dirPath);
|
D | hks_file_operator.c | 311 int32_t HksRemoveDir(const char *dirPath) in HksRemoveDir() argument 314 int32_t ret = stat(dirPath, &fileStat); in HksRemoveDir() 325 DIR *dir = opendir(dirPath); in HksRemoveDir() 331 ret = HksFileRemove(dirPath, dire->d_name); in HksRemoveDir()
|
/base/hiviewdfx/hiview/adapter/service/idl/include/ |
D | hiview_service_agent.h | 46 bool CreateAndGrantAclPermission(const std::string& dirPath);
|
D | hiview_service_ability.h | 85 void GetFileInfoUnderDir(const std::string& dirPath, std::vector<HiviewFileInfo>& fileInfos);
|
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/inner_include/ |
D | trace_utils.h | 47 bool CreateMultiDirectory(const std::string &dirPath);
|
/base/startup/init/interfaces/innerkits/include/ |
D | init_utils.h | 81 int ReadFileInDir(const char *dirPath, const char *includeExt,
|
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/utils/ |
D | trace_utils.cpp | 286 bool CreateMultiDirectory(const std::string &dirPath) in CreateMultiDirectory() argument 288 uint32_t dirPathLen = dirPath.length(); in CreateMultiDirectory() 294 tmpDirPath[i] = dirPath[i]; in CreateMultiDirectory()
|
/base/telephony/core_service/services/sim/src/ |
D | operator_file_parser.cpp | 75 std::filesystem::path dirPath = std::string(DEFAULT_OPERATE_CONFIG_DIR); in DeleteFiles() local 77 std::filesystem::remove_all(dirPath, errorCode); in DeleteFiles()
|
/base/hiviewdfx/hiview/plugins/eventlogger/include/ |
D | event_logger.h | 97 void CreateAndPublishEvent(std::string& dirPath, std::string& fileName);
|
/base/startup/appspawn/util/include/ |
D | appspawn_utils.h | 119 void DumpCurrentDir(char *buffer, uint32_t bufferLen, const char *dirPath);
|
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/ |
D | memory_collector_impl.cpp | 549 static std::string GetSnapshotPath(const std::string& dirPath, const std::string& pidStr) in GetSnapshotPath() argument 551 std::string fileName = GetNewestSnapshotPath(dirPath); in GetSnapshotPath()
|