We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9b9b6e commit 7a40c59Copy full SHA for 7a40c59
tensorflow_datasets/core/dataset_builder.py
@@ -288,7 +288,9 @@ def _checksums_path(cls) -> ReadOnlyPath:
288
# Checksums of legacy datasets are located in a separate dir.
289
legacy_path = utils.tfds_path() / "url_checksums" / f"{cls.name}.txt"
290
if (
291
- "tensorflow_datasets" in new_path.parts
+ # zipfile.Path does not have `.parts`. Additionally, `os.fspath`
292
+ # will extract the file, so use `str`.
293
+ "tensorflow_datasets" in str(new_path)
294
and legacy_path.exists()
295
and not new_path.exists()
296
):
0 commit comments