mirror of https://gitlab.com/basile.b/dexed.git
avoid possible failure if dir does not exist
This commit is contained in:
parent
1592af26bb
commit
dce827ef65
|
@ -379,6 +379,7 @@ begin
|
||||||
str1.WriteComponent(aComp);
|
str1.WriteComponent(aComp);
|
||||||
str1.Position := 0;
|
str1.Position := 0;
|
||||||
ObjectBinaryToText(str1,str2);
|
ObjectBinaryToText(str1,str2);
|
||||||
|
ForceDirectories(ExtractFilePath(aFilename));
|
||||||
str2.SaveToFile(aFilename);
|
str2.SaveToFile(aFilename);
|
||||||
finally
|
finally
|
||||||
str1.Free;
|
str1.Free;
|
||||||
|
|
Loading…
Reference in New Issue