File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -668,6 +668,10 @@ def write_to_directory(
668
668
self .redistribution_info .license
669
669
)
670
670
671
+ self .write_dataset_info_json (dataset_info_dir )
672
+
673
+ def write_dataset_info_json (self , dataset_info_dir : epath .PathLike ) -> None :
674
+ """Writes only the dataset_info.json file to the given directory."""
671
675
dataset_info_path (dataset_info_dir ).write_text (self .as_json )
672
676
673
677
def read_from_directory (self , dataset_info_dir : epath .PathLike ) -> None :
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ def convert_metadata(
178
178
# Add the file format to `alternative_file_formats` field.
179
179
if out_file_format not in info .alternative_file_formats :
180
180
info .add_alternative_file_format (out_file_format .value )
181
- info .write_to_directory (out_path )
181
+ info .write_dataset_info_json (out_path )
182
182
else :
183
183
logging .info (
184
184
'File format %s is already an alternative file format of the dataset'
You can’t perform that action at this time.
0 commit comments