Python and the Glob Function Easy Tutorial

preview_player
Показать описание
In this video, I show you how to use the glob function. Glob is a very powerful function that allows you to find all files in a directory.

If you enjoy this video, please subscribe. I provide all my content at no cost. If you want to support my channel, please donate via

If there's a specific video you would like to see or a tutorial series, let me know in the comments and I will try and make it.
Рекомендации по теме
Комментарии
Автор

This is literally the best movie I've ever seen. Thank you for making!

JoshKonoff
Автор

The output is too small to see. May be for the next video :)

shreesapkota
Автор

When I run the code, nothing prints off and it states no errors. It’s just blank.

hopelopez
Автор

I'm a little confused even though this should be really simple. I have my Python file and a folder named audiofiles together in the same folder. When I run the code below, it just outputs an empty list. The audiofiles folder contains one mp3 file, so it should put that in the list, right?

from glob import glob

audiofiles = glob('./audiofiles/*.mp3')

print(audiofiles)

fahkyew
Автор

Nice vid, thanks, what colour theme are you using?

Chinbab
Автор

what if my python script is in a different folder than the data folder - how to overcome the errors?

jessil