Lines Matching defs:entry
13626 DirEntry_dealloc(DirEntry *entry)
13628 PyTypeObject *tp = Py_TYPE(entry);
13629 Py_XDECREF(entry->name);
13630 Py_XDECREF(entry->path);
13631 Py_XDECREF(entry->stat);
13632 Py_XDECREF(entry->lstat);
13634 free_func(entry);
13648 Return True if the entry is a symbolic link; cached per entry.
13754 Return stat_result object for the entry; cached per entry.
13871 Return True if the entry is a directory; cached per entry.
13889 Return True if the entry is a file; cached per entry.
13903 Return inode of the entry; cached per entry.
13957 Returns the path for the entry.
13970 "the entry's base filename, relative to scandir() \"path\" argument"},
13972 "the entry's full path name; equivalent to os.path.join(scandir_path, entry.name)"},
14045 DirEntry *entry;
14051 entry = PyObject_New(DirEntry, (PyTypeObject *)DirEntryType);
14052 if (!entry)
14054 entry->name = NULL;
14055 entry->path = NULL;
14056 entry->stat = NULL;
14057 entry->lstat = NULL;
14058 entry->got_file_index = 0;
14060 entry->name = PyUnicode_FromWideChar(dataW->cFileName, -1);
14061 if (!entry->name)
14064 Py_SETREF(entry->name, PyUnicode_EncodeFSDefault(entry->name));
14065 if (!entry->name)
14073 entry->path = PyUnicode_FromWideChar(joined_path, -1);
14075 if (!entry->path)
14078 Py_SETREF(entry->path, PyUnicode_EncodeFSDefault(entry->path));
14079 if (!entry->path)
14084 _Py_attribute_data_to_stat(&file_info, reparse_tag, &entry->win32_lstat);
14086 return (PyObject *)entry;
14089 Py_DECREF(entry);
14135 DirEntry *entry;
14139 entry = PyObject_New(DirEntry, (PyTypeObject *)DirEntryType);
14140 if (!entry)
14142 entry->name = NULL;
14143 entry->path = NULL;
14144 entry->stat = NULL;
14145 entry->lstat = NULL;
14148 entry->dir_fd = path->fd;
14152 entry->dir_fd = DEFAULT_DIR_FD;
14159 entry->name = PyUnicode_DecodeFSDefaultAndSize(name, name_len);
14161 entry->path = PyUnicode_DecodeFSDefault(joined_path);
14164 entry->name = PyBytes_FromStringAndSize(name, name_len);
14166 entry->path = PyBytes_FromString(joined_path);
14169 if (!entry->name)
14173 entry->path = entry->name;
14174 Py_INCREF(entry->path);
14176 else if (!entry->path)
14180 entry->d_type = d_type;
14182 entry->d_ino = d_ino;
14184 return (PyObject *)entry;
14187 Py_XDECREF(entry);
14236 PyObject *entry;
14261 entry = DirEntry_from_find_data(module, &iterator->path, file_data);
14262 if (!entry)
14264 return entry;
14308 PyObject *entry;
14333 entry = DirEntry_from_posix_info(module,
14340 if (!entry)
14342 return entry;