fix ForceDirectory that partially creates a dir if ending char is not PathDelim, for example package output directory will be created correctly

git-svn-id: trunk@13055 -
This commit is contained in:
jesus 2007-11-27 21:01:11 +00:00
parent 589f0665d7
commit 8ff99369dd

View File

@ -603,6 +603,7 @@ var i: integer;
Dir: string;
begin
DoDirSeparators(DirectoryName);
DirectoryName:=IncludeTrailingPathDelimiter(DirectoryName);
i:=1;
while i<=length(DirectoryName) do begin
if DirectoryName[i]=PathDelim then begin