Ignore any non-`.parquet` files under `.config/piker/nativedb/` subdir

tsp_gaps
Tyler Goodlet 2025-02-12 16:23:13 -05:00
parent 3caaa30b03
commit 5e4a6d61c7
1 changed files with 7 additions and 1 deletions

View File

@ -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')