Files and Folder list in Python

Опубликовано: 28 Октябрь 2024
на канале: The Programming Portal
2,382
42

In this video you will see how to get list of files and folder in Python using list directory method and also learn standard approach using function.

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

1. Get File list using list directory method
2. Get Folder list
3. Get only Text file list from folder
4. 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....
listdir method -https://docs.python.org/3/library/os....
isdir method - https://docs.python.org/3/library/os....
isfile method - https://docs.python.org/3/library/os....

In this video you will learn:
how to get list of files and folder in Python
how to get only text file list in Python
Creating a function
Calling a function with return statement
isfile() method in Python
isdir() function in python
lisdir() 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!