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 e1e02a2 commit 37437e1Copy full SHA for 37437e1
tensorflow_datasets/scripts/cli/convert_format_utils.py
@@ -174,7 +174,12 @@ def convert_metadata(
174
if json_file.name == constants.DATASET_INFO_FILENAME:
175
continue
176
out_file = out_path / json_file.name
177
- json_file.copy(out_file)
+ if out_file.exists():
178
+ logging.info(
179
+ 'Not copying %s because it already exists.', os.fspath(json_file)
180
+ )
181
+ else:
182
+ json_file.copy(out_file)
183
logging.info('Copied %s to %s', json_file, out_file)
184
185
# Update dataset info and store it.
0 commit comments