Home
last modified time | relevance | path

Searched refs:dirPath (Results 1 - 25 of 62) sorted by relevance

123

/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dbundle_scanner.cpp38 const std::list<std::string> &BundleScanner::Scan(const std::string &dirPath) in Scan() argument
43 APP_LOGD("path:%{private}s", dirPath.c_str()); in Scan()
44 if (!dirPath.empty()) { in Scan()
45 if (!ScanImpl(dirPath)) { in Scan()
59 bool BundleScanner::ScanImpl(const std::string &dirPath) in ScanImpl() argument
61 DIR *dirp = opendir(dirPath.c_str()); in ScanImpl()
63 APP_LOGE("BundleScanner::ScanImpl open dir:%{private}s fail, errno:%{public}d", dirPath.c_str(), errno); in ScanImpl()
80 entries_.push_back(dirPath + ServiceConstants::PATH_SEPARATOR + currentName); in ScanImpl()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_helper_test/src/
H A Dmoving_photo_file_utils_test.cpp106 string dirPath = "/data/test/ConvertToMovingPhoto_001"; in HWTEST_F() local
107 EXPECT_EQ(MediaFileUtils::CreateDirectory(dirPath), true); in HWTEST_F()
108 string livePhotoPath = dirPath + "/" + "livePhoto.jpg"; in HWTEST_F()
110 string imagePath = dirPath + "/" + "image.jpg"; in HWTEST_F()
111 string videoPath = dirPath + "/" + "video.mp4"; in HWTEST_F()
112 string extraDataPath = dirPath + "/" + "extraData"; in HWTEST_F()
121 string dirPath = "/data/test/ConvertToMovingPhoto_002"; in HWTEST_F() local
122 EXPECT_EQ(MediaFileUtils::CreateDirectory(dirPath), true); in HWTEST_F()
123 string livePhotoPath = dirPath + "/" + "livePhotoSamePath.jpg"; in HWTEST_F()
125 string imagePath = dirPath in HWTEST_F()
136 string dirPath = "/data/test/GetCoverPosition_001"; HWTEST_F() local
216 string dirPath = "/data/test/GetVersionAndFrameNum_006"; HWTEST_F() local
234 string dirPath = "/data/test/GetVersionAndFrameNum_007"; HWTEST_F() local
293 string dirPath = "/data/test/GetExtraDataLen_001"; HWTEST_F() local
306 string dirPath = "/data/test/GetExtraDataLen_002"; HWTEST_F() local
326 string dirPath = "/data/test/GetFrameIndex_001"; HWTEST_F() local
338 string dirPath = "/data/test/IsLivePhoto_001/iamge.jpg"; HWTEST_F() local
[all...]
H A Dmedia_file_utils_test.cpp43 string dirPath = "/data/test/isdirempty_001"; in HWTEST_F() local
44 EXPECT_EQ(MediaFileUtils::IsDirEmpty(dirPath), false); in HWTEST_F()
49 string dirPath = "/data/test/isdirempty_002"; in HWTEST_F() local
50 string subPath = dirPath + "/isdirempty_002"; in HWTEST_F()
52 EXPECT_EQ(MediaFileUtils::IsDirEmpty(dirPath), false); in HWTEST_F()
57 string dirPath = "/data/test/isdirempty_003"; in HWTEST_F() local
58 EXPECT_EQ(MediaFileUtils::CreateDirectory(dirPath), true); in HWTEST_F()
59 EXPECT_EQ(MediaFileUtils::IsDirEmpty(dirPath), true); in HWTEST_F()
95 string dirPath = "/data/test/deletedir_001"; in HWTEST_F() local
96 EXPECT_EQ(MediaFileUtils::CreateDirectory(dirPath), tru in HWTEST_F()
102 string dirPath = "/data/test/deletedir_002"; HWTEST_F() local
132 string dirPath = "/data/test/createdir_001"; HWTEST_F() local
256 string dirPath = "/data/test/getalbumdatemodified_001"; HWTEST_F() local
263 string dirPath = ""; HWTEST_F() local
269 string dirPath = "/data/test/getalbumdatemodified_003"; HWTEST_F() local
[all...]
/foundation/filemanagement/file_api/interfaces/kits/native/environment/
H A Denvironment_native.cpp66 std::string dirPath = ""; in GetUserDir() local
67 dirPath = GetPublicPath(path); in GetUserDir()
68 *result = (char *) malloc((dirPath.length() + 1) * sizeof(char)); in GetUserDir()
72 int ret = strcpy_s(*result, (dirPath.length() + 1) * sizeof(char), dirPath.c_str()); in GetUserDir()
/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/data/
H A Dunified_data_helper.cpp82 void UnifiedDataHelper::CreateDirIfNotExist(const std::string& dirPath, const mode_t& mode) in CreateDirIfNotExist() argument
84 if (OHOS::FileExists(dirPath)) { in CreateDirIfNotExist()
85 if (!OHOS::ForceRemoveDirectory(dirPath)) { in CreateDirIfNotExist()
86 LOG_ERROR(UDMF_FRAMEWORK, "remove dir %{public}s failed, errno: %{public}d.", dirPath.c_str(), errno); in CreateDirIfNotExist()
89 LOG_DEBUG(UDMF_FRAMEWORK, "ForceCreateDirectory, dir: %{public}s", dirPath.c_str()); in CreateDirIfNotExist()
90 bool success = OHOS::ForceCreateDirectory(dirPath); in CreateDirIfNotExist()
92 LOG_ERROR(UDMF_FRAMEWORK, "create dir %{public}s failed, errno: %{public}d.", dirPath.c_str(), errno); in CreateDirIfNotExist()
96 chmod(dirPath.c_str(), mode); in CreateDirIfNotExist()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/stream/src/
H A Dfile_packer_stream.cpp36 std::string dirPath; in FilePackerStream() local
39 dirPath = ExtractFilePath(filePath); in FilePackerStream()
42 dirPath = ""; in FilePackerStream()
46 if (!ImageUtils::PathToRealPath(dirPath, realPath)) { in FilePackerStream()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_object_test/src/
H A Dmedialibrary_object_test.cpp45 string dirPath = ""; in HWTEST_F() local
46 int32_t ret = MediaLibraryObjectUtils::CreateDirWithPath(dirPath); in HWTEST_F()
49 dirPath = "system/CreateDirWithPath/storage/cloud/data"; in HWTEST_F()
50 ret = MediaLibraryObjectUtils::CreateDirWithPath(dirPath); in HWTEST_F()
53 dirPath = "system/CreateDirWithPath.exe"; in HWTEST_F()
54 ret = MediaLibraryObjectUtils::CreateDirWithPath(dirPath); in HWTEST_F()
57 dirPath = "/storage/cloud/files/medialib_CreateDirWithPath_test_001"; in HWTEST_F()
58 ret = MediaLibraryObjectUtils::CreateDirWithPath(dirPath); in HWTEST_F()
60 ret = MediaFileUtils::DeleteFile(dirPath); in HWTEST_F()
220 string dirPath in HWTEST_F() local
323 string dirPath = "/storage/cloud/files/medialib_IsFileExistInDb_test_001"; HWTEST_F() local
395 string dirPath = ""; HWTEST_F() local
501 string dirPath = "/storage/cloud/files/test"; HWTEST_F() local
525 string dirPath = "/storage/cloud/files/test"; HWTEST_F() local
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Dbundle_scanner.h32 * @param dirPath Indicates the path to scan.
35 const std::list<std::string> &Scan(const std::string &dirPath);
40 * @param dirPath Indicates the path to scan.
43 bool ScanImpl(const std::string &dirPath);
/foundation/ability/ability_runtime/services/abilitymgr/src/mission/
H A Dmission_data_storage.cpp54 std::string dirPath = GetMissionDataDirPath(); in LoadAllMissionInfo() local
55 OHOS::GetDirFiles(dirPath, fileNameVec); in LoadAllMissionInfo()
91 std::string dirPath = OHOS::ExtractFilePath(filePath); in SaveMissionInfo() local
92 if (!OHOS::FileExists(dirPath)) { in SaveMissionInfo()
93 bool createDir = OHOS::ForceCreateDirectory(dirPath); in SaveMissionInfo()
95 TAG_LOGE(AAFwkTag::ABILITYMGR, "create dir %{public}s fail", dirPath.c_str()); in SaveMissionInfo()
99 chmod(dirPath.c_str(), MODE); in SaveMissionInfo()
228 std::string dirPath = OHOS::ExtractFilePath(filePath); in SaveSnapshotFile() local
229 if (!OHOS::FileExists(dirPath)) { in SaveSnapshotFile()
230 bool createDir = OHOS::ForceCreateDirectory(dirPath); in SaveSnapshotFile()
[all...]
/foundation/arkui/ace_engine/adapter/preview/entrance/
H A Drs_dir_asset_provider.h120 std::string dirPath = basePath_ + "\\" + path; variable
123 if ((hFind = FindFirstFile(dirPath.append("\\*").c_str(), &fileInfo)) != INVALID_HANDLE_VALUE) {
132 std::string dirPath = basePath_ + "/" + path;
134 if (nullptr == (dp = opendir(dirPath.c_str()))) {
/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/test/unittest/
H A Dunified_data_helper_test.cpp66 const std::string dirPath = "storage/media/100/local/files/Pictures"; in HWTEST_F() local
69 unifiedDataHelper.CreateDirIfNotExist(dirPath, mode); in HWTEST_F()
82 const std::string dirPath = "data/storage/el2/base/temp/udata"; in HWTEST_F() local
85 unifiedDataHelper.CreateDirIfNotExist(dirPath, mode); in HWTEST_F()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_unittest_utils/src/
H A Dmedialibrary_unittest_utils.cpp167 string dirPath; in CreateAlbum() local
169 dirPath = ROOT_MEDIA_DIR + displayName; in CreateAlbum()
171 dirPath = parentAlbumAsset->GetPath() + "/" + displayName; in CreateAlbum()
174 valuesBucket.Put(MEDIA_DATA_DB_FILE_PATH, dirPath); in CreateAlbum()
178 MEDIA_INFO_LOG("CreateAlbum:: %{private}s, retVal: %{public}d", dirPath.c_str(), retVal); in CreateAlbum()
180 MEDIA_ERR_LOG("CreateAlbum::create failed, %{private}s", dirPath.c_str()); in CreateAlbum()
184 MEDIA_ERR_LOG("CreateAlbum::GetFileAsset failed, %{private}s", dirPath.c_str()); in CreateAlbum()
/foundation/ability/ability_runtime/frameworks/native/appkit/app/
H A Dextension_plugin_info.cpp117 std::string dirPath = EXTENSION_LIB; in ScanExtensions() local
118 DIR *dirp = opendir(dirPath.c_str()); in ScanExtensions()
120 TAG_LOGE(AAFwkTag::APPKIT, "ScanDir open dir:%{public}s fail", dirPath.c_str()); in ScanExtensions()
137 files.emplace_back(dirPath + PATH_SEPARATOR + currentName); in ScanExtensions()
/foundation/communication/netmanager_ext/services/ethernetmanager/include/
H A Dethernet_configuration.h59 bool IsDirExist(const std::string &dirPath);
60 bool CreateDir(const std::string &dirPath);
61 bool DelDir(const std::string &dirPath);
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/interface/src/
H A Ddocument_store_manager.cpp140 std::string dirPath; in CheckDBPath() local
141 OSAPI::SplitFilePath(path, dirPath, dbName); in CheckDBPath()
143 int errCode = OSAPI::GetRealPath(dirPath, canonicalPath); in CheckDBPath()
/foundation/ability/idl_tool/idl_tool_2/util/
H A Dfile.cpp321 std::string dirPath = dirs.front().back() == SEPARATOR ? dirs.front() : dirs.front() + SEPARATOR; in CreatePartDir() local
323 DIR *dir = opendir(dirPath.c_str()); in CreatePartDir()
325 Logger::E(TAG, "failed to open '%s', errno:%d", dirPath.c_str(), errno); in CreatePartDir()
336 std::string filePath = dirPath + dirInfo->d_name; in CreatePartDir()
342 dirs.emplace(dirPath + dirInfo->d_name); in CreatePartDir()
346 std::string filePath = dirPath + dirInfo->d_name; in CreatePartDir()
/foundation/communication/dsoftbus/adapter/common/kernel/posix/
H A Dsoftbus_adapter_file.c34 char dirPath[SOFTBUS_MAX_PATH_LEN] = {0}; in SoftBusCreateFile() local
43 if (memcpy_s(dirPath, sizeof(dirPath), fileName, len) != EOK) { in SoftBusCreateFile()
47 dirPath[len] = 0; in SoftBusCreateFile()
48 if (access(dirPath, F_OK) != 0) { in SoftBusCreateFile()
49 int32_t ret = mkdir(dirPath, S_IRWXU); in SoftBusCreateFile()
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/proxy/src/
H A Dclient_trans_proxy_file_helper.c350 static int32_t GetDirPath(const char *fullPath, char *dirPath, int32_t dirPathLen) in GetDirPath() argument
372 if (strncpy_s(dirPath, dirPathLen, fullPath, dirLen) != EOK) { in GetDirPath()
381 char *dirPath = (char *)SoftBusCalloc(MAX_FILE_PATH_NAME_LEN); in GetAbsFullPath() local
382 if (dirPath == NULL) { in GetAbsFullPath()
385 if (GetDirPath(fullPath, dirPath, MAX_FILE_PATH_NAME_LEN) != SOFTBUS_OK) { in GetAbsFullPath()
387 SoftBusFree(dirPath); in GetAbsFullPath()
393 SoftBusFree(dirPath); in GetAbsFullPath()
403 if (GetAndCheckRealPath(dirPath, absFullDir) != SOFTBUS_OK) { in GetAbsFullPath()
407 TRANS_LOGI(TRANS_FILE, "dirPath=%{private}s, absFullDir=%{private}s", dirPath, absFullDi in GetAbsFullPath()
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmedialibrary_object_utils.cpp72 int32_t MediaLibraryObjectUtils::CreateDirWithPath(const string &dirPath) in CreateDirWithPath() argument
74 if (dirPath.empty()) { in CreateDirWithPath()
80 values.PutString(MEDIA_DATA_DB_FILE_PATH, dirPath); in CreateDirWithPath()
308 NativeAlbumAsset MediaLibraryObjectUtils::GetLastDirExistInDb(const string &dirPath) in GetLastDirExistInDb() argument
311 string lastPath = dirPath; in GetLastDirExistInDb()
379 int32_t MediaLibraryObjectUtils::InsertDirToDbRecursively(const string &dirPath, int64_t &rowId) in InsertDirToDbRecursively() argument
381 CHECK_AND_RETURN_RET_LOG(!dirPath.empty(), E_VIOLATION_PARAMETERS, "Input parameter dirPath is empty!"); in InsertDirToDbRecursively()
383 NativeAlbumAsset dirAsset = GetLastDirExistInDb(dirPath); in InsertDirToDbRecursively()
391 string path = dirPath; in InsertDirToDbRecursively()
422 string dirPath; CreateDirObj() local
622 string dirPath = dirAsset->GetPath(); DeleteDirObj() local
901 string dirPath = MediaFileUtils::GetParentPath(srcPath); CloseFile() local
997 UpdateDateModified(const string &dirPath) UpdateDateModified() argument
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/media_event_test/src/
H A Devent_create_test.cpp75 int32_t CreateAlbum(const string &albumName, const string &dirPath) in CreateAlbum() argument
80 valuesBucket.Put(MEDIA_DATA_DB_FILE_PATH, dirPath); in CreateAlbum()
/foundation/bundlemanager/bundle_framework/common/utils/src/
H A Dbundle_file_util.cpp233 bool BundleFileUtil::IsExistDir(const std::string &dirPath) in IsExistDir() argument
235 if (dirPath.empty()) { in IsExistDir()
240 if (stat(dirPath.c_str(), &result) != 0) { in IsExistDir()
/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/
H A Dmultistages_video_capture_manager.cpp70 string dirPath = filePath.substr(0, filePath.rfind('/')); in AddVideoInternal() local
72 if (realpath(dirPath.c_str(), realDirPath) == nullptr) { in AddVideoInternal()
73 MEDIA_ERR_LOG("check dirPath fail, dirPath = %{public}s", dirPath.c_str()); in AddVideoInternal()
/foundation/distributeddatamgr/udmf/interfaces/innerkits/data/
H A Dunified_data_helper.h34 static void CreateDirIfNotExist(const std::string& dirPath, const mode_t& mode);
/foundation/bundlemanager/bundle_framework/common/utils/include/
H A Dbundle_file_util.h34 static bool IsExistDir(const std::string &dirPath);
/foundation/filemanagement/app_file_service/test/unittest/remote_file_share/
H A Dremote_file_share_test.cpp190 const string dirPath = "/data/app/el2/100/base/com.demo.a/"; in HWTEST_F() local
195 int ret = mkdir(dirPath.c_str(), S_IRWXU | S_IRWXG | S_IXOTH); in HWTEST_F()
209 ret = rmdir(dirPath.c_str()); in HWTEST_F()
368 const string dirPath = "/data/app/el2/100/base/com.demo.a/"; in HWTEST_F() local
374 int ret = mkdir(dirPath.c_str(), S_IRWXU | S_IRWXG | S_IXOTH); in HWTEST_F()
387 ret = rmdir(dirPath.c_str()); in HWTEST_F()

Completed in 24 milliseconds

123