@barneygale That’s… interesting. The original intent for the “accessor” thing was to have a variant that did all accesses under a filesystem tree in a race condition-free way using openat
and friends. It turned out to be much too hairy to actually implement, so was entirely abandoned, but the accessor abstraction was left there.
It would be nice if you could directly modify pathlib
and post the diff (or PR) somewhere. Some parts of pathlib
use shortcurts for speed (especially Path
construction), and I’m curious if you can retain the shortcuts while respecting the accessor abstraction.