﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35572	Improve performance replacing os.listdir() with os.scandir()	Paolo Melchiorre	Marcus Vinicius Araujo	"Use `os.scandir()` instead of `os.listdir()` in the remaining occurrences in the code:
https://github.com/search?q=repo%3Adjango%2Fdjango+os.listdir&type=code

Based on the [https://docs.python.org/3/library/os.html#os.scandir Python documentation]
> Using scandir() instead of listdir() can significantly increase the performance of code that also needs file type or file attribute information, because os.DirEntry objects expose this information if the operating system provides it when scanning a directory."	Cleanup/optimization	closed	Core (Other)	dev	Normal	wontfix	scandir listdir python os	Paolo Melchiorre Marcus Vinicius Araujo	Accepted	1	0	0	0	0	0
