handle updated twitter archive

This commit is contained in:
Dima Gerasimov 2020-03-16 23:36:18 +00:00
parent 66790cb9f4
commit 6c5d713a17
2 changed files with 34 additions and 9 deletions

View file

@ -45,3 +45,12 @@ class CPath(PosixPath):
open = kopen # TODO FIXME remove?
# meh
def kexists(path: PathIsh, subpath: str) -> bool:
try:
kopen(path, subpath)
return True
except Exception:
return False