ShopperCove
Menu
All writingBlogTopicsCategoriesAboutRSS
Blog
Categories
Observability & SRE62All categories
Topics
sre111localhost lab102performance70python58javascript47bundle size36benchmarking35node.js35web development21typescript19benchmark16content creation15All topics
About

Topic

pathlib

4 posts

Loading posts…

ShopperCove

Hands-on notes on developer tools, written after the tool has actually been run.

All writingBlogCategoriesTopicsAboutPrivacyRSS

© 2026 ShopperCove

How to Check if a File Exists in Python (3 Ways)?

The modern answer is pathlib, but the right choice depends on what you do next.

12 Oct 20261 min read
→

Path.read_text vs open().read: Localhost Lab

1 Oct 20263 min read
→

Path.glob vs listdir+fnmatch: Localhost Lab

Hands-on Path.glob vs os.listdir+fnmatch.filter one-dir lab: real matches/s on *.py files, measured on Linux localhost today in this hands-on lab for SREs.

1 Oct 20264 min read
→

os.stat vs Path.stat vs lstat: Localhost Lab

Hands-on os.stat vs pathlib.Path.stat vs os.lstat: real metadata stats/s on many regular files, measured on Linux localhost in this hands-on lab for SREs.

1 Oct 20264 min read
→