Python | List Files in a Directory

preview_player
Показать описание
In this video we look into how to list the files and the directory of current path or a specific path using the os library and the glob library. The os library's list dir allows for easy and simple listing of directory of current and specific path, while the glob method adds more functionality to listing file and directories through pattern matching and outputting absolute path to files.
Рекомендации по теме
Комментарии
Автор

If i have 60 txt files and i want to read them and extract data from all 60 file how i can do that

Camila-fvqj
Автор

is there a way to count the number of downloadable files in a specific website directory?

tawilk
Автор

i just messed up
i was making a program to open pdfs in a folder so i put this python file in that folder used ur method to make a list of files in that folder and open them by subprocess Popen and then i had 70 pdfs open because it also listed the python file and it became a recurring loop and i couldn't even stop it

ninjagaming
Автор

I'm trying to create an auto R18 book file sorting cause there is just so much this is not it

SloppyPossy