Home
last modified time | relevance | path

Searched refs:d_name (Results 1 - 25 of 102) sorted by relevance

12345

/foundation/filemanagement/storage_service/services/storage_daemon/utils/
H A Dfile_utils.cpp194 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 Dhi_audit.cpp163 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 Ddirectory_ex.cpp110 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 Dfile_operations_local_mock.cpp87 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 Ddirectory_ex.cpp85 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 Dlist_file.cpp102 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 Ddbinder_service_test_helper.cpp50 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 Db_dir.cpp51 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 Dread_dir.cpp65 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 Dfile_operations_local.cpp152 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 Dcontainer.cpp254 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 Dipc_test_helper.cpp108 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 Ddir_n_exporter.cpp122 .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 Dlistfile.cpp158 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 Dutils_directory.cpp251 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 Dapplication_cleaner.cpp201 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 Dhi_audit.cpp157 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 Dhi_audit.cpp168 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 Dbundle_scanner.cpp75 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 Drs_dir_asset_provider.h139 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 Dfile_asset_provider_impl.cpp131 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 Dfile_system.cpp140 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 Dhotplug_detector.cpp92 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 Dfile.cpp331 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 Dstore_util.cpp197 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()

Completed in 13 milliseconds

12345