Managing Directories

Опубликовано: 16 Март 2026
на канале: TecKnowfy
352
11

Welcome back everyone,
In this video, I'm going to show you how to handle directories using Python! So, if you're ready, let's get started!

When we are creating a program, most times we'll be dealing with handling files or directories or in some cases, both! Knowing how to manage them, won't just give you more knowledge, but it will also give you more tools and skills when creating a program.

There are six common operations we are going to cover in this video:
1. Get the current working directory: getcwd()
2. Changing directories: chdir()
3. Listing the contents of a directory: listdir()
4. Creating new directories: mkdir()
5. Renaming files and directories: rename()
6. Removing directories: rmdir()

Chapters:
00:00 - Intro
00:08 - What is a directory?
00:19 - Six common directory operations
00:27 - Get current working directory
00:56 - Changing directories
01:37 - List contents in directory
02:03 - Creating new directories
03:27 - Renaming directories
04:09 - Removing directories/files
05:38 - Conclusion

Tags: programming, python, coding, learn how to program, learning python, how to program in python, program using python, python programming, programming tutorials, learn programming, coding tutorials, programming for beginners, how to code, programming languages, coding for beginners, free coding courses, free coding tutorials, free programming courses, free programming tutorials, managing directories in python, python create directory, python remove directory, python os module, python pathlib, list directories python, python change directory, python directory handling, python make directory, python delete directory, python working directory, python directory management