aboutsummaryrefslogtreecommitdiffstats
path: root/includes/filebackend/FileBackendStore.php
diff options
context:
space:
mode:
authorAaron Schulz <aschulz@wikimedia.org>2012-10-31 23:36:49 -0700
committerAaron Schulz <aschulz@wikimedia.org>2012-10-31 23:36:49 -0700
commit9c7018e4fd29d541c3c5bcd65095e2cfff886c64 (patch)
tree6e0c4ea74d462cae4566be3413bfefc39c6063c8 /includes/filebackend/FileBackendStore.php
parent63fa9df088280df300e43bf691bf823e32d8c151 (diff)
downloadmediawikicore-9c7018e4fd29d541c3c5bcd65095e2cfff886c64.tar.gz
mediawikicore-9c7018e4fd29d541c3c5bcd65095e2cfff886c64.zip
[FileBackend] Check if paths are writable for delete ops too.
* Also clarified the docs around isPathUsableInternal(). Change-Id: I3fc10fce43e040f45045d6da69f0211e9ab4155d
Diffstat (limited to 'includes/filebackend/FileBackendStore.php')
-rw-r--r--includes/filebackend/FileBackendStore.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/filebackend/FileBackendStore.php b/includes/filebackend/FileBackendStore.php
index cb8be0b2ccf1..7e91949e68d5 100644
--- a/includes/filebackend/FileBackendStore.php
+++ b/includes/filebackend/FileBackendStore.php
@@ -72,8 +72,9 @@ abstract class FileBackendStore extends FileBackend {
}
/**
- * Check if a file can be created at a given storage path.
- * FS backends should check if the parent directory exists and the file is writable.
+ * Check if a file can be created or changed at a given storage path.
+ * FS backends should check if the parent directory exists, files can be
+ * written under it, and that any file already there is writable.
* Backends using key/value stores should check if the container exists.
*
* @param $storagePath string