avoid possible failure if dir does not exist

This commit is contained in:
Basile Burg 2014-12-09 03:49:46 +01:00
parent 1592af26bb
commit dce827ef65
1 changed files with 1 additions and 0 deletions

View File

@ -379,6 +379,7 @@ begin
str1.WriteComponent(aComp);
str1.Position := 0;
ObjectBinaryToText(str1,str2);
ForceDirectories(ExtractFilePath(aFilename));
str2.SaveToFile(aFilename);
finally
str1.Free;