mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 15:48:03 +02:00
codetools: fixed DirectoryIsWritable when missing pathdelim at end
git-svn-id: trunk@12707 -
This commit is contained in:
parent
efe7d0f7c6
commit
94f9b83e0e
@ -335,15 +335,15 @@ var
|
||||
fs: TFileStream;
|
||||
s: String;
|
||||
begin
|
||||
TempFilename:=GetTempFilename(DirectoryName,'tstperm');
|
||||
TempFilename:=GetTempFilename(AppendPathDelim(DirectoryName),'tstperm');
|
||||
Result:=false;
|
||||
try
|
||||
InvalidateFileStateCache;
|
||||
fs:=TFileStream.Create(TempFilename,fmCreate);
|
||||
s:='WriteTest';
|
||||
fs.Write(s[1],length(s));
|
||||
fs.Free;
|
||||
DeleteFile(TempFilename);
|
||||
if not DeleteFile(TempFilename) then
|
||||
InvalidateFileStateCache;
|
||||
Result:=true;
|
||||
except
|
||||
end;
|
||||
|
@ -8408,6 +8408,7 @@ begin
|
||||
end;
|
||||
|
||||
procedure TMainIDE.DoRestart;
|
||||
|
||||
procedure StartStarter;
|
||||
var
|
||||
StartLazProcess: TProcess;
|
||||
|
Loading…
Reference in New Issue
Block a user