Unverified Commit 4f996c91 authored by Marius van den Beek's avatar Marius van den Beek Committed by GitHub
Browse files

Merge pull request #20994 from davelopez/backport_#20984

[25.0] Backport of #20984
parents f33eb423 c2899e91
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -2030,14 +2030,13 @@ class DirectoryModelExportStore(ModelExportStore):
                as_dict["extra_files_path"] = extra_files_path
            return

        conversion = self.dataset_implicit_conversions.get(dataset)
        conversion_key = self.serialization_options.get_identifier(self.security, conversion) if conversion else None

        if file_name:
            if not os.path.exists(dir_path):
                os.makedirs(dir_path)

            conversion = self.dataset_implicit_conversions.get(dataset)
            conversion_key = (
                self.serialization_options.get_identifier(self.security, conversion) if conversion else None
            )
            target_filename = get_export_dataset_filename(
                as_dict["name"], as_dict["extension"], as_dict["encoded_id"], conversion_key=conversion_key
            )