summaryrefslogtreecommitdiff
path: root/classes/diskcache.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/diskcache.php')
-rw-r--r--classes/diskcache.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/diskcache.php b/classes/diskcache.php
index fdfc46cb1..e6fc7c1b3 100644
--- a/classes/diskcache.php
+++ b/classes/diskcache.php
@@ -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));
}