mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 17:59:26 +02:00
Issue #39988: Try to create output directory if it does not exist.
This is more convenient for users and when included in a script.
This commit is contained in:
parent
98f806bb4f
commit
5c34ab0510
@ -95,9 +95,9 @@ end;
|
|||||||
|
|
||||||
procedure TGirConsoleConverter.VerifyOptions;
|
procedure TGirConsoleConverter.VerifyOptions;
|
||||||
begin
|
begin
|
||||||
if not DirectoryExists(FOutPutDirectory) then
|
if not ForceDirectories(FOutPutDirectory) then
|
||||||
begin
|
begin
|
||||||
WriteLn(Format('Output directory "%s" does not exist!', [FOutPutDirectory]));
|
WriteLn(Format('Could not create output directory "%s"!', [FOutPutDirectory]));
|
||||||
Terminate;
|
Terminate;
|
||||||
end;
|
end;
|
||||||
if FFileToConvert = '' then
|
if FFileToConvert = '' then
|
||||||
|
Loading…
Reference in New Issue
Block a user