* Patch to avoid error when trying to create empty directory

git-svn-id: trunk@24240 -
This commit is contained in:
michael 2013-04-14 15:34:00 +00:00
parent 02a288fd89
commit 1824a932a3

View File

@ -951,6 +951,7 @@ begin
if FFileName > '' then
begin
D:=ExtractFilePath(FFileName);
If D <> '' Then
if not ForceDirectories(D) then
Raise EInoutError.CreateFmt(SErrCouldNotCreatePath,[D]);
slLines.SaveToFile(FFileName);