diff options
author | Aaron Schulz <aschulz@wikimedia.org> | 2012-10-31 23:36:49 -0700 |
---|---|---|
committer | Aaron Schulz <aschulz@wikimedia.org> | 2012-10-31 23:36:49 -0700 |
commit | 9c7018e4fd29d541c3c5bcd65095e2cfff886c64 (patch) | |
tree | 6e0c4ea74d462cae4566be3413bfefc39c6063c8 /includes/filebackend/FileBackendStore.php | |
parent | 63fa9df088280df300e43bf691bf823e32d8c151 (diff) | |
download | mediawikicore-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.php | 5 |
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 |