Opened 6 years ago

Last modified 6 years ago

#29689 closed Cleanup/optimization

Replace os.listdir with os.scandir in FileSystemStorage.listdir — at Initial Version

Reported by: Federico Bond Owned by: nobody
Component: File uploads/storage Version: 2.1
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Now that the minimum supported version is Python 3.5, we can replace os.listdir with os.scandir in FileSystemStorage.listdir for improved performance.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top