/foundation/filemanagement/storage_service/services/storage_daemon/utils/ |
H A D | file_utils.cpp | 194 if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) { in RmDirRecurse() 198 if (!RmDirRecurse(path + "/" + ent->d_name)) { in RmDirRecurse() 204 if (unlink((path + "/" + ent->d_name).c_str())) { in RmDirRecurse() 205 LOGE("failed to unlink file %{public}s, errno %{public}d", ent->d_name, errno); in RmDirRecurse() 240 if ((!strncmp(dp->d_name, skip1, strlen(skip1))) || (!strncmp(dp->d_name, skip2, strlen(skip2)))) { in TravelChmod() 243 std::string subpath = path + "/" + dp->d_name; in TravelChmod() 292 (strcmp(ent->d_name, ".") == 0) || in GetSubDirs() 293 (strcmp(ent->d_name, " in GetSubDirs() [all...] |
H A D | hi_audit.cpp | 163 if (std::string(ptr->d_name).find(HIAUDIT_CONFIG.logName) != std::string::npos && in CleanOldAuditFile() 164 std::string(ptr->d_name).find("zip") != std::string::npos) { in CleanOldAuditFile() 167 oldestAuditFile = HIAUDIT_CONFIG.logPath + std::string(ptr->d_name); in CleanOldAuditFile() 171 stat((HIAUDIT_CONFIG.logPath + std::string(ptr->d_name)).c_str(), &st); in CleanOldAuditFile() 175 oldestAuditFile = HIAUDIT_CONFIG.logPath + std::string(ptr->d_name); in CleanOldAuditFile()
|
/foundation/graphic/graphic_2d/rosen/modules/platform/utils/ |
H A D | directory_ex.cpp | 110 if ((strcmp(ptr->d_name, ".") == 0) || (strcmp(ptr->d_name, "..") == 0)) { in GetDirFiles() 113 pathStringWithDelimiter = IncludeTrailingPathDelimiter(path) + string(ptr->d_name); in GetDirFiles() 116 files.push_back(IncludeTrailingPathDelimiter(path) + string(ptr->d_name)); in GetDirFiles() 175 if (strcmp(ptr->d_name, ".") == 0 || strcmp(ptr->d_name, "..") == 0) { in ForceRemoveDirectory() 178 subPath = IncludeTrailingPathDelimiter(path) + string(ptr->d_name); in ForceRemoveDirectory() 266 if (strcmp(ptr->d_name, ".") == 0 || strcmp(ptr->d_name, "..") == 0) { in ChangeModeDirectory() 269 subPath = IncludeTrailingPathDelimiter(path) + string(ptr->d_name); in ChangeModeDirectory() [all...] |
/foundation/filemanagement/dfs_service/test/unittests/cloud_disk/mock/ |
H A D | file_operations_local_mock.cpp | 87 if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0) { in ReadDir() 92 entry->d_name); in ReadDir() 94 entry->d_name); in ReadDir() 98 entry->d_name, childPath.c_str()); in ReadDir() 103 FileOperationsHelper::AddDirEntry(req, entryData, len, entry->d_name, childPtr); in ReadDir()
|
/foundation/multimedia/image_framework/mock/native/src/ |
H A D | directory_ex.cpp | 85 if (strcmp(ptr->d_name, ".") == 0 || strcmp(ptr->d_name, "..") == 0) { in GetDirFiles() 88 pathStringWithDelimiter = IncludeTrailingPathDelimiter(path) + string(ptr->d_name); in GetDirFiles() 91 files.push_back(IncludeTrailingPathDelimiter(path) + string(ptr->d_name)); in GetDirFiles()
|
/foundation/filemanagement/file_api/interfaces/kits/cj/src/ |
H A D | list_file.cpp | 102 size_t found = string(filename.d_name).rfind('.'); in FilterSuffix() 106 string suffixStr = string(filename.d_name).substr(found); in FilterSuffix() 118 int ret = fnmatch(iter.c_str(), filename.d_name, FNM_PATHNAME | FNM_PERIOD); in FilterDisplayname() 132 string stPath = (g_optionArgs.path + '/' + string(filename.d_name)); in FilterFilesizeOver() 150 string stPath = g_optionArgs.path + '/' + string(filename.d_name); in FilterLastModifyTime() 186 if (string_view(filename->d_name) == "." || string_view(filename->d_name) == "..") { in FilterFunc() 224 dirents.emplace_back(pNameList->namelist[i]->d_name); in FilterFileRes() 245 dirents.emplace_back(path + '/' + pNameList->namelist[i]->d_name); in RecursiveFunc() 248 g_optionArgs.path += '/' + string((*(pNameList->namelist[i])).d_name); in RecursiveFunc() [all...] |
/foundation/communication/ipc/services/dbinder/test/distributedtest/src/ |
H A D | dbinder_service_test_helper.cpp | 50 if ((strcmp(ptr->d_name, ".") == 0) || (strcmp(ptr->d_name, "..") == 0)) { in GetPidByName() 57 if (sprintf_s(filepath, sizeof(filepath), "/proc/%s/status", ptr->d_name) <= EOK) { in GetPidByName() 75 if (sscanf_s(ptr->d_name, "%d", &pid) <= EOK) { in GetPidByName() 97 if ((strcmp(ptr->d_name, ".") == 0) || (strcmp(ptr->d_name, "..") == 0)) { in GetChildPids() 104 pid_t child = std::stoi(ptr->d_name); in GetChildPids()
|
/foundation/filemanagement/app_file_service/utils/src/b_filesystem/ |
H A D | b_dir.cpp | 51 if (entry->d_type != DT_DIR || (strcmp(entry->d_name, ".") != 0 && strcmp(entry->d_name, "..") != 0)) { in IsEmptyDirectory() 114 if ((strcmp(ptr->d_name, ".") == 0) || (strcmp(ptr->d_name, "..") == 0)) { in GetDirFilesDetail() 118 string fileName = IncludeTrailingPathDelimiter(path) + string(ptr->d_name); in GetDirFilesDetail() 138 GetDirFilesDetail(IncludeTrailingPathDelimiter(path) + string(ptr->d_name), recursion, size); in GetDirFilesDetail() 160 if ((strcmp(ptr->d_name, ".") == 0) || (strcmp(ptr->d_name, "..") == 0)) { in GetDirFiles() 165 files.push_back(IncludeTrailingPathDelimiter(path) + string(ptr->d_name)); in GetDirFiles() 355 if ((strcmp(ptr->d_name, " in GetUser0DirFilesDetail() [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/properties/ |
H A D | read_dir.cpp | 65 if (VerifyFilePath(entry->d_name)) { in Sync() 66 dirFiles.push_back(entry->d_name); in Sync() 105 if (VerifyFilePath(entry->d_name)) { in Async() 106 dirnames.push_back(entry->d_name); in Async()
|
/foundation/filemanagement/dfs_service/services/cloudfiledaemon/src/cloud_disk/ |
H A D | file_operations_local.cpp | 152 if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0) { in ReadDir() 157 entry->d_name); in ReadDir() 159 entry->d_name); in ReadDir() 163 entry->d_name, childPath.c_str()); in ReadDir() 168 FileOperationsHelper::AddDirEntry(req, entryData, len, entry->d_name, childPtr); in ReadDir()
|
/foundation/arkui/ace_engine/frameworks/core/common/ |
H A D | container.cpp | 254 if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) { in IsFontFileExistInPath() 257 if (strcmp(ent->d_name, "flag") == 0) { in IsFontFileExistInPath() 259 } else if (strcmp(ent->d_name, "fonts") == 0) { in IsFontFileExistInPath() 280 if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) { in GetFontFamilyName() 283 if (endsWith(ent->d_name, ".ttf")) { in GetFontFamilyName() 284 fontFamilyName = ent->d_name; in GetFontFamilyName()
|
/foundation/communication/ipc/ipc/test/auxiliary/native/src/ |
H A D | ipc_test_helper.cpp | 108 if ((strcmp(ptr->d_name, ".") == 0) || in GetPidByName() 109 (strcmp(ptr->d_name, "..") == 0) || in GetPidByName() 114 if (sprintf_s(filepath, sizeof(filepath), "/proc/%s/status", ptr->d_name) <= 0) { in GetPidByName() 135 if (sscanf_s(ptr->d_name, "%d", &pid) <= 0) { in GetPidByName() 164 if ((strcmp(ptr->d_name, ".") == 0) || (strcmp(ptr->d_name, "..") == 0)) { in GetChildPids() 172 pid_t child = std::stoi(ptr->d_name); in GetChildPids()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_dir/ |
H A D | dir_n_exporter.cpp | 122 .d_name = { '\0' }, 141 if (strlen(arg->dirRes.d_name) == 0) { in DoReadComplete() 182 } else if (string(res->d_name) == "." || string(res->d_name) == "..") { in Read() 235 } else if (string(res->d_name) == "." || string(res->d_name) == "..") { in ReadSync() 352 } else if (string(res->d_name) == "." || string(res->d_name) == "..") { in ListFile() 405 } else if (string(res->d_name) == "." || string(res->d_name) in ListFileSync() [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
H A D | listfile.cpp | 158 size_t found = string(filename.d_name).rfind('.');
in FilterSuffix() 162 string suffixStr = string(filename.d_name).substr(found);
in FilterSuffix() 174 int ret = fnmatch(iter.c_str(), filename.d_name, FNM_PATHNAME | FNM_PERIOD);
in FilterDisplayname() 188 string stPath = (g_optionArgs.path + '/' + string(filename.d_name));
in FilterFilesizeOver() 206 string stPath = g_optionArgs.path + '/' + string(filename.d_name);
in FilterLastModifyTime() 242 if (string_view(filename->d_name) == "." || string_view(filename->d_name) == "..") {
in FilterFunc() 280 dirents.emplace_back(pNameList->namelist[i]->d_name);
in FilterFileRes() 300 dirents.emplace_back(path + '/' + pNameList->namelist[i]->d_name);
in RecursiveFunc() 303 g_optionArgs.path += '/' + string((*(pNameList->namelist[i])).d_name);
in RecursiveFunc() [all...] |
/foundation/filemanagement/dfs_service/utils/system/src/ |
H A D | utils_directory.cpp | 251 if (strcmp(ptr->d_name, ".") == 0 || strcmp(ptr->d_name, "..") == 0) { in ForceRemoveDirectoryDeepFirst() 254 subPath = IncludeTrailingPathDelimiter(path) + string(ptr->d_name); in ForceRemoveDirectoryDeepFirst() 319 auto tmpPath = std::string(name).append("/").append(ent->d_name); in GetFilePath() 320 if (strcmp(ent->d_name, "..") == 0 || strcmp(ent->d_name, ".") == 0) { in GetFilePath() 345 if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0) { in ChangeOwnerRecursive() 348 std::string subPath = path + "/" + entry->d_name; in ChangeOwnerRecursive() 355 std::string filePath = path + "/" + entry->d_name; in ChangeOwnerRecursive() [all...] |
/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
H A D | application_cleaner.cpp | 201 if (strcmp(ptr->d_name, ".") == 0 || strcmp(ptr->d_name, "..") == 0) { in TraverseObsoleteTempDirectory() 204 if (ptr->d_type == DT_DIR && strncmp(ptr->d_name, MARK_TEMP_DIR.c_str(), MARK_TEMP_LEN) == 0) { in TraverseObsoleteTempDirectory() 205 std::string tempDir = filePath + std::string(ptr->d_name); in TraverseObsoleteTempDirectory() 210 std::string currentDir = filePath + std::string(ptr->d_name); in TraverseObsoleteTempDirectory()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | hi_audit.cpp | 157 if (std::string(ptr->d_name).find(HIAUDIT_CONFIG.logName) != std::string::npos && in CleanOldAuditFile() 158 std::string(ptr->d_name).find("zip") != std::string::npos) { in CleanOldAuditFile() 161 oldestAuditFile = HIAUDIT_CONFIG.logPath + std::string(ptr->d_name); in CleanOldAuditFile() 165 stat((HIAUDIT_CONFIG.logPath + std::string(ptr->d_name)).c_str(), &st); in CleanOldAuditFile() 169 oldestAuditFile = HIAUDIT_CONFIG.logPath + std::string(ptr->d_name); in CleanOldAuditFile()
|
/foundation/filemanagement/app_file_service/utils/src/b_hiaudit/ |
H A D | hi_audit.cpp | 168 if (std::string(ptr->d_name).find(hiAuditConfig_.logName) != std::string::npos && in CleanOldAuditFile() 169 std::string(ptr->d_name).find("zip") != std::string::npos) { in CleanOldAuditFile() 172 oldestAuditFile = hiAuditConfig_.logPath + std::string(ptr->d_name); in CleanOldAuditFile() 176 stat((hiAuditConfig_.logPath + std::string(ptr->d_name)).c_str(), &st); in CleanOldAuditFile() 180 oldestAuditFile = HIAUDIT_CONFIG.logPath + std::string(ptr->d_name); in CleanOldAuditFile()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | bundle_scanner.cpp | 75 std::string currentName(dirent->d_name); in ScanImpl() 76 APP_LOGD("folder found:'%{private}s'", dirent->d_name); in ScanImpl()
|
/foundation/arkui/ace_engine/adapter/preview/entrance/ |
H A D | rs_dir_asset_provider.h | 139 if (strcmp(dptr->d_name, ".") != 0 && strcmp(dptr->d_name, "..") != 0) { 140 assetList.push_back(dptr->d_name);
|
/foundation/arkui/ace_engine/adapter/ohos/entrance/ |
H A D | file_asset_provider_impl.cpp | 131 if (strcmp(dptr->d_name, ".") != 0 && strcmp(dptr->d_name, "..") != 0) { in GetAssetList() 132 assetList.push_back(dptr->d_name); in GetAssetList()
|
/foundation/multimedia/media_foundation/src/osal/filesystem/ |
H A D | file_system.cpp | 140 if (strcmp(info->d_name, ".") == 0 || strcmp(info->d_name, "..") == 0) { in RemoveFilesInDir() 143 std::string fullPath = path + "/" + info->d_name; in RemoveFilesInDir()
|
/foundation/multimodalinput/input/service/libinput_adapter/src/ |
H A D | hotplug_detector.cpp | 92 if (entry->d_name == "."s || entry->d_name == ".."s) { in Scan() 95 addFunc_(std::string{INPUT_DEVICES_PATH} + entry->d_name); in Scan()
|
/foundation/ability/idl_tool/idl_tool_2/util/ |
H A D | file.cpp | 331 if (strcmp(dirInfo->d_name, ".") == 0 || strcmp(dirInfo->d_name, "..") == 0) { in CreatePartDir() 335 if (dirInfo->d_type == DT_REG && StringHelper::EndWith(dirInfo->d_name, ".idl")) { 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/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/ |
H A D | store_util.cpp | 197 subPaths.push_back(dp->d_name); in GetSubPath() 216 auto fullName = path + "/" + dp->d_name; in GetFiles() 219 fileInfo.name = dp->d_name; in GetFiles() 297 if ((std::string(dp->d_name) == ".") || (std::string(dp->d_name) == "..")) { in RemoveRWXForOthers() 300 if (!RemoveRWXForOthers(path + "/" + dp->d_name)) { in RemoveRWXForOthers()
|