Touch cache file before opening

This commit is contained in:
Nexus 2024-02-10 01:58:11 +00:00
parent de62b09437
commit b672f9b8c9
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -122,6 +122,7 @@ if Path.cwd() == Path("/app"):
else:
CACHE_DIR = Path(appdirs.user_cache_dir("matrix-url-preview"))
CACHE_FILE = CACHE_DIR / "db.sqlite3"
CACHE_FILE.touch()
logging.debug("Cache file: %r", CACHE_FILE)