/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | process_system_api_adapter_impl.cpp | 69 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 D | common_func.cpp | 62 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 D | distributeddb_tools_test.cpp | 84 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 D | scanner_utils.cpp | 147 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 D | ringtone_scanner_utils.cpp | 137 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 D | mtpfs_util.h | 43 bool SmtpfsCreateDir(const std::string &dirName); 44 bool SmtpfsRemoveDir(const std::string &dirName);
|
/foundation/filemanagement/storage_service/services/storage_daemon/mtpfs/src/ |
H A D | mtpfs_util.cpp | 133 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 D | bundle_file_utils.cpp | 122 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 D | common_func.h | 28 static bool GetDirByBundleNameAndAppIndex(const std::string &bundleName, int32_t appIndex, std::string &dirName);
|
/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/ |
H A D | network_security_config.cpp | 194 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 D | uri_permission_utils.h | 35 static bool GetDirByBundleNameAndAppIndex(const std::string &bundleName, int32_t appIndex, std::string &dirName);
|
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/ |
H A D | key_backup.cpp | 447 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 D | file_share.cpp | 81 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 D | dinput_utils_tool.cpp | 341 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 D | media_file_utils.cpp | 374 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 D | dfx_manager.h | 70 void IsDirectoryExist(const std::string &dirName);
|
/foundation/multimedia/ringtone_library/services/utils/include/ |
H A D | ringtone_file_utils.h | 69 EXPORT static bool IsDirectory(const std::string &dirName, std::shared_ptr<int> errCodePtr = nullptr);
|
/foundation/distributedhardware/distributed_input/utils/include/ |
H A D | dinput_utils_tool.h | 59 void ScanInputDevicesPath(const std::string &dirName, std::vector<std::string> &vecInputDevPath);
|
/foundation/ability/ability_runtime/services/uripermmgr/src/ |
H A D | uri_permission_utils.cpp | 183 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 D | copy_dir.cpp | 171 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 D | key_backup.h | 60 void FsyncDirectory(const std::string &dirName);
|
/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/ |
H A D | thumbnail_utils.cpp | 130 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 D | media_file_utils.h | 90 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 D | copydir.cpp | 224 string dirName = string(src).substr(found);
in CopyDirFunc() local 225 string destStr = dest + dirName;
in CopyDirFunc()
|
H A D | movedir.cpp | 260 string dirName = string(src).substr(found);
in MoveDirFunc() local 261 string destStr = dest + dirName;
in MoveDirFunc()
|