The built-in os module has a number of useful functions that can be used to list directory contents and filter the results. In this lesson, you'll learn about os.listdir() and os.scandir().The lesson also covers another way to get a directory listing using the pathlib module.
Click here to learn more: https://realpython.com/courses/practi...
Watch video Getting a Directory Listing in Python online, duration hours minute second in high quality that is uploaded to the channel Real Python 06 August 2020. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 3,606 times and liked it 130 visitors.