>>> p.resolve() ... FileNotFoundError: [Errno 2] No such file or directory: '/Users/chris/~'
I've not used the pathlib module yet, but poked through the documentation. Oddly enough, I saw no mention of "~". The doc for the resolve method only mentions resolving symlinks. In addition, the pathlib doc doesn't mention "expand" either. My guess is your working directory was /Users/chris, and that "~" expansion isn't supported by pathlib. Even so, it seems like a common enough task that I'd open a bug report/feature request at bugs.python.org. Skip -- https://mail.python.org/mailman/listinfo/python-list