mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 05:45:56 +00:00
add DiskCache.isWritable
This commit is contained in:
@@ -10,6 +10,10 @@ class DiskCache {
|
||||
return $this->dir;
|
||||
}
|
||||
|
||||
public function isWritable() {
|
||||
return is_dir($this->dir) && is_writable($this->dir);
|
||||
}
|
||||
|
||||
public function exists($filename) {
|
||||
return file_exists($this->getFullPath($filename));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user