Lines Matching refs:dir
155 DIR *dir = opendir(path.c_str());
156 if (dir == nullptr) {
157 UTILS_LOGD("Failed to open root dir: %{public}s: %{public}s ", path.c_str(), strerror(errno));
163 traverseStack.push(dir);
229 DIR *dir;
238 DIR *dir = opendir(path.c_str());
239 if (dir == nullptr) {
240 UTILS_LOGE("Failed to open root dir: %{public}s: %{public}s ", path.c_str(), strerror(errno));
245 traversStack.push(dir);
263 // current dir or parent dir
282 node.dir = subDir;
311 closedir(node.dir);
317 closedir(dir);
320 UTILS_LOGE("Failed to remove root dir: %{public}s: %{public}s ", path.c_str(), strerror(errno));
377 DIR *dir = opendir(path.c_str());
378 if (dir == nullptr) {
383 struct dirent *ptr = readdir(dir);
388 // current dir or parent dir
399 closedir(dir);
405 closedir(dir);