"Adding File System context to pathlib"
summary
Claim: move file-system flags from verbs to Path objects so a Path carries case sensitivity and follow symlinks behavior. Prototype: ContextPath subclasses pathlib, threads flags through with_segments, and exercises stat and glob against two TIFFs plus a symlink. Tests show expected results (one vs two matches, symlink vs target stat) so the idea works as a small patch. Next steps are a PEP, decisions on precedence, deprecation path, Windows junctions and loop limits for following symlinks.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:09Motivation for pathlib change
- 6:30Core problem and solution
- 9:44Prototyping context path
- 12:39Flags in stat and glob
- 15:10Testing context path
- 18:46Next steps and adoption
- 21:12Future and compatibility
- 25:11Closing and Q&A
related talks
16mElegant Filesystem Interactions in Python using pathlib
27mpathlib: why and how to use it
30m"Hot: Pathlib, Not: String Paths"
38mDistributed file-systems made easy with Python's fsspec
34mLearning to Write Filesystems in Userspace with FUSE and Python
19mThe Enters and Exits of Context Managers
38mIt Works on My Machine: Writing Python Code for Any Environment
01h 00mKeynote: Python now and in the future
