Home
last modified time | relevance | path

Searched refs:dirName (Results 1 - 25 of 44) sorted by relevance

12

/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Dprocess_system_api_adapter_impl.cpp69 std::string dirName; in SetSecurityOption() local
89 dirName.clear(); in SetSecurityOption()
90 dirName.append(filePath).append("/").append(str); in SetSecurityOption()
92 SetSecurityOption(dirName, option); in SetSecurityOption()
94 pathSecOptDic_[dirName] = option; in SetSecurityOption()
95 LOGD("set path secOpt![%s] [%d] [%d]", dirName.c_str(), option.securityFlag, option.securityLabel); in SetSecurityOption()
98 pathSecOptDic_[dirName] = option; in SetSecurityOption()
99 LOGD("set path secOpt![%s] [%d] [%d]", dirName.c_str(), option.securityFlag, option.securityLabel); in SetSecurityOption()
/foundation/filemanagement/app_file_service/interfaces/common/src/
H A Dcommon_func.cpp62 bool CommonFunc::GetDirByBundleNameAndAppIndex(const std::string &bundleName, int32_t appIndex, std::string &dirName) in GetDirByBundleNameAndAppIndex() argument
69 auto bmsRet = bmsClient->GetDirByBundleNameAndAppIndex(bundleName, appIndex, dirName); in GetDirByBundleNameAndAppIndex()
91 string dirName = "" ; in GetSelfBundleName() local
92 if (GetDirByBundleNameAndAppIndex(bundleInfo.name, bundleInfo.appIndex, dirName)) { in GetSelfBundleName()
93 return dirName; in GetSelfBundleName()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/common/
H A Ddistributeddb_tools_test.cpp84 std::string dirName; in RemoveTestDbFiles() local
102 dirName.clear(); in RemoveTestDbFiles()
103 dirName.append(dir).append("/").append(str); in RemoveTestDbFiles()
105 RemoveTestDbFiles(dirName); in RemoveTestDbFiles()
106 rmdir(dirName.c_str()); in RemoveTestDbFiles()
107 } else if (remove(dirName.c_str()) != 0) { in RemoveTestDbFiles()
108 LOGI("remove file: %s failed!", dirName.c_str()); in RemoveTestDbFiles()
/foundation/multimedia/media_library/frameworks/services/media_scanner/src/scanner/
H A Dscanner_utils.cpp147 string dirName = ScannerUtils::GetFileNameFromUri(path); in IsDirHidden() local
148 if (!dirName.empty() && dirName.at(0) == '.') { in IsDirHidden()
149 MEDIA_DEBUG_LOG("hidden Directory, name:%{private}s path:%{private}s", dirName.c_str(), path.c_str()); in IsDirHidden()
/foundation/multimedia/ringtone_library/services/ringtone_scanner/src/
H A Dringtone_scanner_utils.cpp137 string dirName = RingtoneScannerUtils::GetFileNameFromUri(path); in IsDirHidden() local
138 if (!dirName.empty() && dirName.at(0) == '.') { in IsDirHidden()
139 RINGTONE_DEBUG_LOG("hidden Directory, name:%{private}s path:%{private}s", dirName.c_str(), path.c_str()); in IsDirHidden()
/foundation/filemanagement/storage_service/services/storage_daemon/mtpfs/include/
H A Dmtpfs_util.h43 bool SmtpfsCreateDir(const std::string &dirName);
44 bool SmtpfsRemoveDir(const std::string &dirName);
/foundation/filemanagement/storage_service/services/storage_daemon/mtpfs/src/
H A Dmtpfs_util.cpp133 bool SmtpfsCreateDir(const std::string &dirName) in SmtpfsCreateDir() argument
135 return ::mkdir(dirName.c_str(), S_IRWXU) == 0; in SmtpfsCreateDir()
138 bool SmtpfsRemoveDir(const std::string &dirName) in SmtpfsRemoveDir() argument
144 dir = ::opendir(dirName.c_str()); in SmtpfsRemoveDir()
150 path = dirName + "/" + entry->d_name; in SmtpfsRemoveDir()
158 ::remove(dirName.c_str()); in SmtpfsRemoveDir()
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/src/
H A Dbundle_file_utils.cpp122 std::string dirName = std::string(path) + "/" + dp->d_name; in RemoveFile() local
123 if (dirName.length() >= PATH_MAX || !RemoveFile(dirName.c_str())) { in RemoveFile()
/foundation/filemanagement/app_file_service/interfaces/common/include/
H A Dcommon_func.h28 static bool GetDirByBundleNameAndAppIndex(const std::string &bundleName, int32_t appIndex, std::string &dirName);
/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/
H A Dnetwork_security_config.cpp194 auto dirName = GetRehashedCADirName(caPath); in BuildRehasedCAPath() local
195 if (dirName.empty()) { in BuildRehasedCAPath()
200 auto rehashedCertpath = REHASHD_CA_CERTS_DIR + OS_PATH_SEPARATOR + dirName; in BuildRehasedCAPath()
218 auto dirName = GetRehashedCADirName(caPath); in GetRehasedCAPath() local
219 if (dirName.empty()) { in GetRehasedCAPath()
223 auto rehashedCertpath = REHASHD_CA_CERTS_DIR + OS_PATH_SEPARATOR + dirName; in GetRehasedCAPath()
/foundation/ability/ability_runtime/services/uripermmgr/include/
H A Duri_permission_utils.h35 static bool GetDirByBundleNameAndAppIndex(const std::string &bundleName, int32_t appIndex, std::string &dirName);
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dkey_backup.cpp447 void KeyBackup::FsyncDirectory(const std::string &dirName) in FsyncDirectory() argument
449 LOGI("sync directory dirName %s", dirName.c_str()); in FsyncDirectory()
451 if (!GetRealPath(dirName, realPath)) { in FsyncDirectory()
462 LOGE("file system does not support sync, dirName: %s", realPath.c_str()); in FsyncDirectory()
491 LOGI("mkdir parent dirName %s", pathName.c_str()); in MkdirParent()
495 std::string dirName = pathName.substr(0, pos); in MkdirParent() local
496 if (access(dirName.c_str(), F_OK) != 0) { in MkdirParent()
497 if (mkdir(dirName.c_str(), mode) < 0) { in MkdirParent()
498 LOGE("mkdr dir %s failed", dirName in MkdirParent()
[all...]
/foundation/filemanagement/app_file_service/interfaces/innerkits/native/file_share/src/
H A Dfile_share.cpp81 string dirName = "" ; in GetTargetInfo() local
85 } else if (CommonFunc::GetDirByBundleNameAndAppIndex(bundleName, index, dirName)) { in GetTargetInfo()
86 bundleName = dirName; in GetTargetInfo()
/foundation/distributedhardware/distributed_input/utils/src/
H A Ddinput_utils_tool.cpp341 void ScanInputDevicesPath(const std::string &dirName, std::vector<std::string> &vecInputDevPath) in ScanInputDevicesPath() argument
345 dir = opendir(dirName.c_str()); in ScanInputDevicesPath()
358 std::string tmpDevName = dirName + "/" + std::string(de->d_name); in ScanInputDevicesPath()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dmedia_file_utils.cpp374 bool MediaFileUtils::IsDirectory(const string &dirName, shared_ptr<int> errCodePtr) in IsDirectory() argument
378 if (stat(dirName.c_str(), &statInfo) == E_SUCCESS) { in IsDirectory()
425 bool MediaFileUtils::DeleteDir(const string &dirName) in DeleteDir() argument
429 if (IsDirectory(dirName)) { in DeleteDir()
430 errRet = (RemoveDirectory(dirName) == E_SUCCESS); in DeleteDir()
/foundation/multimedia/media_library/frameworks/services/media_dfx/include/
H A Ddfx_manager.h70 void IsDirectoryExist(const std::string &dirName);
/foundation/multimedia/ringtone_library/services/utils/include/
H A Dringtone_file_utils.h69 EXPORT static bool IsDirectory(const std::string &dirName, std::shared_ptr<int> errCodePtr = nullptr);
/foundation/distributedhardware/distributed_input/utils/include/
H A Ddinput_utils_tool.h59 void ScanInputDevicesPath(const std::string &dirName, std::vector<std::string> &vecInputDevPath);
/foundation/ability/ability_runtime/services/uripermmgr/src/
H A Duri_permission_utils.cpp183 bool UPMSUtils::GetDirByBundleNameAndAppIndex(const std::string &bundleName, int32_t appIndex, std::string &dirName) in GetDirByBundleNameAndAppIndex() argument
190 auto bmsRet = bmsClient->GetDirByBundleNameAndAppIndex(bundleName, appIndex, dirName); in GetDirByBundleNameAndAppIndex()
/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dcopy_dir.cpp171 std::string dirName = std::string(src).substr(found); in CopyDirFunc() local
172 std::string destStr = dest + dirName; in CopyDirFunc()
/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/
H A Dkey_backup.h60 void FsyncDirectory(const std::string &dirName);
/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/
H A Dthumbnail_utils.cpp130 string dirName = MediaFileUtils::GetParentPath(fileName); in DeleteThumbExDir() local
131 if (access(dirName.c_str(), F_OK) != 0) { in DeleteThumbExDir()
133 DfxUtils::GetSafePath(dirName).c_str(), data.id.c_str()); in DeleteThumbExDir()
136 if (!MediaFileUtils::DeleteDir(dirName)) { in DeleteThumbExDir()
138 DfxUtils::GetSafePath(dirName).c_str(), data.id.c_str()); in DeleteThumbExDir()
147 string dirName = MediaFileUtils::GetParentPath(fileName); in DeleteBeginTimestampDir() local
148 if (access(dirName.c_str(), F_OK) != 0) { in DeleteBeginTimestampDir()
150 DfxUtils::GetSafePath(dirName).c_str(), data.id.c_str()); in DeleteBeginTimestampDir()
154 for (const auto &dirEntry : std::filesystem::directory_iterator{dirName}) { in DeleteBeginTimestampDir()
161 string folderPath = dirName in DeleteBeginTimestampDir()
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/include/
H A Dmedia_file_utils.h90 EXPORT static bool DeleteDir(const std::string &dirName);
94 EXPORT static bool IsDirectory(const std::string &dirName, std::shared_ptr<int> errCodePtr = nullptr);
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dcopydir.cpp224 string dirName = string(src).substr(found); in CopyDirFunc() local
225 string destStr = dest + dirName; in CopyDirFunc()
H A Dmovedir.cpp260 string dirName = string(src).substr(found); in MoveDirFunc() local
261 string destStr = dest + dirName; in MoveDirFunc()

Completed in 21 milliseconds

12