List ALL files, folders and subfolders inside each and every directory and subdirectory in Python

Опубликовано: 28 Октябрь 2024
на канале: The Programming Portal
3,647
27

In this video you will see how to get list of all files, folders and subfolders from each directory and subdirectory using OS dot walk method in python.
Also will create dictionary having files and folder list in well structured way.

We will see below examples and understand each steps in details.

1. Get File list using OS dot walk method
2. Get Folder list
3. Get Sub Folder List
4. Get Each File and Folder list in recursive way
5. Dictionary having well structured list of files and folders
6. Function creation in python

Website : https://theprogrammingportal.com/
source code : https://github.com/TheProgrammingPort...

Python tutorial - https://docs.python.org/3/tutorial/in...
os module - https://docs.python.org/3/library/os....
os path - https://docs.python.org/3/library/os....
walk method -https://docs.python.org/3/library/os....

In this video you will learn:
how to get list of files and folder in Python recursively
how to get each files and folder from each subdirectory in Python
Dictionary creation with well structured way
Creating a function
Calling a function with return statement
walk() function

Want to learn more from me?

Python examples complete Playlist :
   • python program for string palindrome  
Java examples complete Playlist :
   • Java Factorial Program  
#pythontutorial #PythonTutorialForBeginners #PythonProgramToListFilesAndDirectories #FileListInPython #PythonExamples

Subscribe to my other channel for random videos:
IndianBox :    / @indianbox1736  

Follow us on:
Facebook :   / theprogrammingportal  
Instagram :   / theprogrammingportal  
Support:
Patreon :   / theprogrammingportal  

Keep Coding!