Working with Files and Directories in Python โ€” LearnFlat
โฑ 2h 30m ๐Ÿ“š 25 lessons

Working with Files and Directories in Python

Learn to programmatically create, read, update, and delete files and folders using Python's standard library.

  • ๐Ÿ’ฌ AI instructor
    Ask about any lesson and get a clear answer instantly, anytime.
  • ๐Ÿ• Start anytime
    No schedules or deadlines โ€” learn at your own pace, whenever suits you.
  • ๐ŸŒ In English
    Lessons, tasks and certificate โ€” all fully in your language.

About this course

Are you looking to automate how you organize, clean, and manage files on your computer? Python provides powerful, built-in tools to handle these tasks, saving you time and preventing manual errors. This course teaches you the essential skills for filesystem manipulation in Python. You will learn how to write scripts that can confidently interact with files and directories, from simple read/write operations to organizing complex folder structures. By the end, you'll be able to automate routine file-based workflows with clean and efficient code. What you'll learn: - Understand the modern `pathlib` module for object-oriented filesystem paths. - Practice reading from and writing to text files using best-practice context managers. - Learn to safely create, copy, move, rename, and delete files and directories. - Master techniques for iterating through directory trees to find and process files. - Apply robust error handling to manage scenarios like missing files or permission errors. - Build a practical script to automatically organize files into subfolders. The course starts with the fundamentals of file paths and basic I/O operations. From there, you will explore more advanced topics like directory traversal and writing resilient code that gracefully handles exceptions. This course is designed for beginners who have a basic grasp of Python syntax. No prior experience with file system programming is necessary. Begin your journey to automating file management with Python today.

What you'll get

  • ๐Ÿ“œ Certificate of completion
    Add it to your LinkedIn profile
  • ๐Ÿ’ฌ Personal AI tutor
    Stuck on a lesson? Ask your built-in tutor anything, any time.
  • โ™พ๏ธ Lifetime access
    Come back anytime, no expiry
  • ๐Ÿ“ฑ Phone or computer
    Works anywhere, any device
  • ๐Ÿ’ธ 14-day refund
    No questions asked
  • โšก Short & focused
    2h 30m of practical content

Reviews

No reviews yet โ€” be the first to share your experience.

Write a review

โ˜†โ˜†โ˜†โ˜†โ˜†
You'll be asked to sign in after sending โ€” your draft is saved.

Frequently asked

What do I need to take this course? +

Just a phone or computer with internet. No installs, no special hardware.

How do I pay? +

By card via Stripe. We donโ€™t store card details โ€” Stripe handles them securely.

Can I get a refund? +

Yes โ€” full refund within 14 days, no questions asked.

How long will I have access? +

Forever. Once you purchase, the course is yours to revisit anytime.

Will I get a certificate? +

Yes. On completion you'll receive a certificate you can add to your LinkedIn profile.

Built for learners in
Tech Design Finance Marketing Healthcare Education Hospitality Manufacturing