diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-11-24 03:04:33 -0800 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-11-24 03:04:33 -0800 |
commit | aef34618de995316d60d699cbb9c6fb697658d12 (patch) | |
tree | 4c36938525d434167b92eee494dc16040585c2ab /lib | |
parent | ba0e09adce14b6ccd36eb93b475f5c4400701587 (diff) | |
parent | c62cce826994291c528e7cc90da5be9fc94ebaf2 (diff) | |
download | nextcloud-server-aef34618de995316d60d699cbb9c6fb697658d12.tar.gz nextcloud-server-aef34618de995316d60d699cbb9c6fb697658d12.zip |
Merge pull request #5995 from owncloud/extstorage-isreadablefix
Return plausible isReadable() default impl for ext storage
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/storage/common.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php index f99bbc9ae5e..678bf419023 100644 --- a/lib/private/files/storage/common.php +++ b/lib/private/files/storage/common.php @@ -51,6 +51,19 @@ abstract class Common implements \OC\Files\Storage\Storage { } } + public function isReadable($path) { + // at least check whether it exists + // subclasses might want to implement this more thoroughly + return $this->file_exists($path); + } + + public function isUpdatable($path) { + // at least check whether it exists + // subclasses might want to implement this more thoroughly + // a non-existing file/folder isn't updatable + return $this->file_exists($path); + } + public function isCreatable($path) { if ($this->is_dir($path) && $this->isUpdatable($path)) { return true; |