summaryrefslogtreecommitdiffstats
path: root/lib/private/files/view.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-01-13 14:51:37 +0100
committerLukas Reschke <lukas@owncloud.com>2015-01-13 14:53:00 +0100
commitd66facc762e5922d4183b3f2598a0e8cb0433d81 (patch)
tree746cf18169dad8fc783c00f6e27c0d36ec9c6fa6 /lib/private/files/view.php
parentba8c050d2b827804d0c860be19591c9d35fd0adf (diff)
downloadnextcloud-server-d66facc762e5922d4183b3f2598a0e8cb0433d81.tar.gz
nextcloud-server-d66facc762e5922d4183b3f2598a0e8cb0433d81.zip
Fix annotations in file view
Diffstat (limited to 'lib/private/files/view.php')
-rw-r--r--lib/private/files/view.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 034c49a9059..648ec1493a8 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -212,6 +212,10 @@ class View {
}
}
+ /**
+ * @param string $path
+ * @return bool|mixed
+ */
public function rmdir($path) {
$absolutePath = $this->getAbsolutePath($path);
$mount = Filesystem::getMountManager()->find($absolutePath);
@@ -435,11 +439,18 @@ class View {
/**
* @param string $directory
+ * @param bool $empty
+ * @return bool|mixed
*/
public function deleteAll($directory, $empty = false) {
return $this->rmdir($directory);
}
+ /**
+ * @param string $path1
+ * @param string $path2
+ * @return bool|mixed
+ */
public function rename($path1, $path2) {
$postFix1 = (substr($path1, -1, 1) === '/') ? '/' : '';
$postFix2 = (substr($path2, -1, 1) === '/') ? '/' : '';