Using Python to List the files in a Directory

Published: 13 June 2024
on channel: Real Python
983
47

This is a preview of the video course, "Listing All Files in a Directory With Python." Getting a list of all the files and folders in a directory is a natural first step for many file-related operations in Python. When looking into it, though, you may be surprised to find various ways to go about it.

This is a portion of the complete course, which you can find here:
https://realpython.com/courses/effici...

The rest of the course covers:
Using .glob and .rglob()
Listing files using recursive techniques
Conditionally listing the files


Watch video Using Python to List the files in a Directory online, duration hours minute second in high quality that is uploaded to the channel Real Python 13 June 2024. 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 983 times and liked it 47 visitors.