mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 02:39:15 +02:00
printers4lazarus: cups: checkif tmp dir writable
git-svn-id: trunk@50172 -
This commit is contained in:
parent
67a8e3a52e
commit
7cdf5a2bb6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user