mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Auto create needed directories if they don't yet exist in directory mode of SQL export. Fixes issue #745.
This commit is contained in:
@ -850,6 +850,8 @@ begin
|
||||
try
|
||||
if ToDir then begin
|
||||
FreeAndNil(ExportStream);
|
||||
if not DirectoryExists(comboExportOutputTarget.Text) then
|
||||
ForceDirectories(comboExportOutputTarget.Text);
|
||||
ExportStream := openfs(comboExportOutputTarget.Text+'\'+GoodFileName(obj)+'.sql');
|
||||
end;
|
||||
if ToFile and (not Assigned(ExportStream)) then
|
||||
|
Reference in New Issue
Block a user