Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Python Tutorial: Pathlib – The Modern Way to Handle File Paths

79.7K views on YouTube

In this Python Programming video, we will be learning how to use the Pathlib module and see why it’s now preferred over os.path.

Thank You to the sponsor, Ekster Wallets!
Please use code “SCHAFER” at checkout!
https://partner.ekster.com/coreyms

In this video, we’ll be learning how to use Path objects, which uses an object-oriented approach to file paths instead of using strings like done previously when using the os.path method. Many code bases are switching over to using Pathlib and Path objects, so this is an important skill to master. Let’s get started…

Working with Files in Python – https://youtu.be/Uh2ebFW8OYM

✅ Support My Channel Through Patreon:
https://www.patreon.com/coreyms

✅ Become a Channel Member:
https://www.youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g/join

✅ One-Time Contribution Through PayPal:
https://goo.gl/649HFY

✅ Cryptocurrency Donations:
Bitcoin Wallet – 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet – 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet – MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey’s Public Amazon Wishlist
http://a.co/inIyro1

✅ Equipment I Use and Books I Recommend:
https://www.amazon.com/shop/coreyschafer

▶️ You Can Find Me On:
My Website – http://coreyms.com/
My Second Channel – https://www.youtube.com/c/coreymschafer
Facebook – https://www.facebook.com/CoreyMSchafer
Twitter – https://twitter.com/CoreyMSchafer
Instagram – https://www.instagram.com/coreymschafer/

#Python #Pathlib