From 5e4a6d61c70888d75617ae4700c5c7091cdb82df Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 12 Feb 2025 16:23:13 -0500 Subject: [PATCH] Ignore any non-`.parquet` files under `.config/piker/nativedb/` subdir --- piker/storage/nativedb.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/piker/storage/nativedb.py b/piker/storage/nativedb.py index bc7f10e3..8a948cab 100644 --- a/piker/storage/nativedb.py +++ b/piker/storage/nativedb.py @@ -161,7 +161,13 @@ class NativeStorageClient: def index_files(self): for path in self._datadir.iterdir(): - if path.name in {'borked', 'expired',}: + if ( + path.is_dir() + or + '.parquet' not in str(path) + # or + # path.name in {'borked', 'expired',} + ): continue key: str = path.name.rstrip('.parquet')