mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 10:59:29 +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;
|
||||
begin
|
||||
if not DirectoryExists(FOutPutDirectory) then
|
||||
if not ForceDirectories(FOutPutDirectory) then
|
||||
begin
|
||||
WriteLn(Format('Output directory "%s" does not exist!', [FOutPutDirectory]));
|
||||
WriteLn(Format('Could not create output directory "%s"!', [FOutPutDirectory]));
|
||||
Terminate;
|
||||
end;
|
||||
if FFileToConvert = '' then
|
||||
|
Loading…
Reference in New Issue
Block a user