/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 | 91 std::string dirPath = GetStorageDirPath(); in WriteEvent() local 92 if (dirPath.empty()) { in WriteEvent() 101 if (!FileUtil::IsFileExists(dirPath) && !FileUtil::ForceCreateDirectory(dirPath)) { in WriteEvent() 105 CheckStorageSpace(dirPath); in WriteEvent() 106 std::string filePath = FileUtil::GetFilePathByDir(dirPath, GetStorageFileName()); in WriteEvent()
|
/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/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/hiview/adapter/service/idl/src/ |
D | hiview_service_agent.cpp | 141 bool HiviewServiceAgent::CreateAndGrantAclPermission(const std::string& dirPath) in CreateAndGrantAclPermission() argument 143 if (!FileUtil::FileExists(dirPath) && !FileUtil::ForceCreateDirectory(dirPath)) { in CreateAndGrantAclPermission() 147 if (OHOS::StorageDaemon::AclSetAccess(dirPath, "g:1201:rwx") != 0) { in CreateAndGrantAclPermission()
|
D | hiview_service_ability.cpp | 171 void HiviewServiceAbility::GetFileInfoUnderDir(const std::string& dirPath, std::vector<HiviewFileIn… in GetFileInfoUnderDir() argument 173 DIR* dir = opendir(dirPath.c_str()); in GetFileInfoUnderDir() 183 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 | 126 static int32_t RemoveDir(const char *dirPath) in RemoveDir() argument 129 int32_t ret = stat(dirPath, &fileStat); in RemoveDir() 138 DIR *dir = opendir(dirPath); in RemoveDir() 146 ret = CmFileRemove(dirPath, dire->d_name); in RemoveDir() 154 (void)remove(dirPath); in RemoveDir()
|
/base/startup/init/services/utils/ |
D | init_utils.c | 520 int ReadFileInDir(const char *dirPath, const char *includeExt, in ReadFileInDir() argument 523 INIT_CHECK_RETURN_VALUE(dirPath != NULL && processFile != NULL, -1); in ReadFileInDir() 524 DIR *pDir = opendir(dirPath); in ReadFileInDir() 525 INIT_ERROR_CHECK(pDir != NULL, return -1, "Read dir :%s failed.%d", dirPath, errno); in ReadFileInDir() 528 return -1, "Failed to malloc for %s", dirPath); in ReadFileInDir() 545 … int ret = snprintf_s(fileName, MAX_BUF_SIZE, MAX_BUF_SIZE - 1, "%s/%s", dirPath, dp->d_name); in ReadFileInDir() 556 INIT_LOGV("ReadFileInDir dirPath %s %d", dirPath, count); in ReadFileInDir()
|
/base/hiviewdfx/hiview/adapter/service/idl/include/ |
D | hiview_service_agent.h | 42 static bool CreateAndGrantAclPermission(const std::string& dirPath);
|
D | hiview_service_ability.h | 53 void GetFileInfoUnderDir(const std::string& dirPath, std::vector<HiviewFileInfo>& fileInfos);
|
/base/security/huks/utils/file_operator/ |
D | hks_file_operator_lite.c | 287 int32_t HksRemoveDir(const char *dirPath) in HksRemoveDir() argument 290 int32_t ret = stat(dirPath, &fileStat); in HksRemoveDir() 301 DIR *dir = opendir(dirPath); in HksRemoveDir() 307 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 | 308 int32_t HksRemoveDir(const char *dirPath) in HksRemoveDir() argument 311 int32_t ret = stat(dirPath, &fileStat); in HksRemoveDir() 322 DIR *dir = opendir(dirPath); in HksRemoveDir() 328 ret = HksFileRemove(dirPath, dire->d_name); in HksRemoveDir()
|
/base/startup/init/services/include/ |
D | init_utils.h | 74 int ReadFileInDir(const char *dirPath, const char *includeExt,
|
/base/hiviewdfx/hiview/plugins/eventlogger/include/ |
D | event_logger.h | 88 void CreateAndPublishEvent(std::string& dirPath, std::string& fileName);
|
/base/hiviewdfx/hiview/plugins/eventlogger/ |
D | event_logger.cpp | 488 void EventLogger::CreateAndPublishEvent(std::string& dirPath, std::string& fileName) in CreateAndPublishEvent() argument 501 std::string logPath = dirPath + "/" + fileName; in CreateAndPublishEvent()
|