printers4lazarus: cups: checkif tmp dir writable

git-svn-id: trunk@50172 -
This commit is contained in:
mattias 2015-10-26 09:29:29 +00:00
parent 67a8e3a52e
commit 7cdf5a2bb6

View File

@ -851,9 +851,12 @@ var
var
CurPath: String;
begin
Result:=false;
CurPath:=CleanAndExpandDirectory(Path);
Result:=DirPathExists(CurPath);
if Result then NewPath:=CurPath;
if CurPath='' then exit(false);
if not DirectoryIsWritable(CurPath) then exit;
NewPath:=CurPath;
Result:=true;
end;
begin