summaryrefslogtreecommitdiffstats
path: root/lib/filesystem.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/filesystem.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/filesystem.php')
-rw-r--r--lib/filesystem.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/filesystem.php b/lib/filesystem.php
index 65318fa3ab6..5dfcaa107b8 100644
--- a/lib/filesystem.php
+++ b/lib/filesystem.php
@@ -421,12 +421,33 @@ class OC_Filesystem{
static public function readfile($path){
return self::$defaultInstance->readfile($path);
}
+ /**
+ * @deprecated Replaced by isReadable() as part of CRUDS
+ */
static public function is_readable($path){
return self::$defaultInstance->is_readable($path);
}
+ /**
+ * @deprecated Replaced by isCreatable(), isUpdatable(), isDeletable() as part of CRUDS
+ */
static public function is_writable($path){
return self::$defaultInstance->is_writable($path);
}
+ static public function isCreatable($path) {
+ return self::$defaultInstance->isCreatable($path);
+ }
+ static public function isReadable($path) {
+ return self::$defaultInstance->isReadable($path);
+ }
+ static public function isUpdatable($path) {
+ return self::$defaultInstance->isUpdatable($path);
+ }
+ static public function isDeletable($path) {
+ return self::$defaultInstance->isDeletable($path);
+ }
+ static public function isSharable($path) {
+ return self::$defaultInstance->isSharable($path);
+ }
static public function file_exists($path){
return self::$defaultInstance->file_exists($path);
}