mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-24 16:29:14 +02:00
* Patch to avoid error when trying to create empty directory
git-svn-id: trunk@24240 -
This commit is contained in:
parent
02a288fd89
commit
1824a932a3
@ -951,8 +951,9 @@ begin
|
|||||||
if FFileName > '' then
|
if FFileName > '' then
|
||||||
begin
|
begin
|
||||||
D:=ExtractFilePath(FFileName);
|
D:=ExtractFilePath(FFileName);
|
||||||
if not ForceDirectories(D) then
|
If D <> '' Then
|
||||||
Raise EInoutError.CreateFmt(SErrCouldNotCreatePath,[D]);
|
if not ForceDirectories(D) then
|
||||||
|
Raise EInoutError.CreateFmt(SErrCouldNotCreatePath,[D]);
|
||||||
slLines.SaveToFile(FFileName);
|
slLines.SaveToFile(FFileName);
|
||||||
end
|
end
|
||||||
else if FStream <> nil then
|
else if FStream <> nil then
|
||||||
|
Loading…
Reference in New Issue
Block a user