Skip to content

Commit

Permalink
fs delete only current named schema
Browse files Browse the repository at this point in the history
  • Loading branch information
steinitzu committed May 28, 2024
1 parent 403ae8b commit 176cc43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlt/destinations/impl/filesystem/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def drop_tables(self, *tables: str, delete_schema: bool = True) -> None:
if not delete_schema:
return
# Delete all stored schemas
for filename, _ in self._list_dlt_table_files(self.schema.version_table_name):
for filename, _ in self._iter_stored_schema_files():
self._delete_file(filename)

def truncate_tables(self, table_names: List[str]) -> None:
Expand Down

0 comments on commit 176cc43

Please sign in to comment.