summaryrefslogtreecommitdiffstats
path: root/lib/filestorage/common.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-07-24 17:42:07 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-07-24 20:10:28 -0400
commitf7b89f047504740224f664917d6588c1fe203877 (patch)
tree5cce4d672681a025466dce8b7237cf17b652eab9 /lib/filestorage/common.php
parentc60c6024a7f02fc9548bc8b8f45f02efa1f9346f (diff)
downloadnextcloud-server-f7b89f047504740224f664917d6588c1fe203877.tar.gz
nextcloud-server-f7b89f047504740224f664917d6588c1fe203877.zip
Add CRUDS permissions calls to filesystem, deprecate is_readable() and is_writable()
Diffstat (limited to 'lib/filestorage/common.php')
-rw-r--r--lib/filestorage/common.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/filestorage/common.php b/lib/filestorage/common.php
index ba78fca80e5..633c2fdfc76 100644
--- a/lib/filestorage/common.php
+++ b/lib/filestorage/common.php
@@ -54,8 +54,17 @@ abstract class OC_Filestorage_Common extends OC_Filestorage {
return $stat['size'];
}
}
-// abstract public function is_readable($path);
-// abstract public function is_writable($path);
+ public function isCreatable($path) {
+ return $this->isUpdatable($path);
+ }
+// abstract public function isReadable($path);
+// abstract public function isUpdatable($path);
+ public function isDeletable($path) {
+ return $this->isUpdatable($path);
+ }
+ public function isSharable($path) {
+ return $this->isReadable($path);
+ }
// abstract public function file_exists($path);
public function filectime($path) {
$stat = $this->stat($path);