New paste Repaste Download
paths = {
    name: Path('/foo/bar/name/'),
    ...
}
def ensure_path(name):
    p = paths[name]
    p.mkdir(exist_ok=True)
    return p
__getattr__ = ensure_path
Filename: None. Size: 178b. View raw, , hex, or download this file.

This paste expires on 2026-10-11 23:34:14.254932+00:00. Pasted through web.