public function FrxFile::isWritable in Forena Reports 7.4
Return an indicator as to whether the file is savable. New files can be saved if the directory is writabel.
Parameters
unknown $filename:
Return value
boolean
File
- ./
FrxFile.inc, line 393 - FrxFile.inc File toolbox for manipulating files contained tn the report directory.
Class
- FrxFile
- @file FrxFile.inc File toolbox for manipulating files contained tn the report directory.
Code
public function isWritable($filename) {
return is_writeable($this->dir . "/{$filename}") || !file_exists($this->dir . "/{$filename}");
}