Message321812
When using pathlib to manipulate paths that may be symlinks or regular files, a pattern that comes up frequently is this expression:
path.is_symlink() or path.exists()
os.path.lexists(path) can be used for this, but when using pathlib going back to os.path for this seems like defeat. |
|
Date |
User |
Action |
Args |
2018-07-17 10:59:41 | lordmauve | set | recipients:
+ lordmauve |
2018-07-17 10:59:41 | lordmauve | set | messageid: <1531825181.93.0.56676864532.issue34137@psf.upfronthosting.co.za> |
2018-07-17 10:59:41 | lordmauve | link | issue34137 messages |
2018-07-17 10:59:41 | lordmauve | create | |
|