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

deribit_fix_backup
Tyler Goodlet 2025-02-12 16:23:13 -05:00
parent dcbf8c0eeb
commit a2f73258ca
1 changed files with 7 additions and 1 deletions

View File

@ -161,7 +161,13 @@ class NativeStorageClient:
def index_files(self): def index_files(self):
for path in self._datadir.iterdir(): 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 continue
key: str = path.name.rstrip('.parquet') key: str = path.name.rstrip('.parquet')