From d6043be127f4eac13d82469973d3ae78bdaeb68a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 2 Aug 2016 12:18:51 +0200 Subject: [PATCH] fix not working removing of directories and changing group ownership --- api/src/Vfs.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/api/src/Vfs.php b/api/src/Vfs.php index 2230b0f077..94f9baf4c2 100644 --- a/api/src/Vfs.php +++ b/api/src/Vfs.php @@ -2183,13 +2183,13 @@ class Vfs * In order for the appropriate error message to be returned, do not define this method if your wrapper does not support creating directories. * * @param string $path - * @param int $mode - * @param int $options Posible values include STREAM_REPORT_ERRORS and STREAM_MKDIR_RECURSIVE + * @param int $mode =0750 + * @param boolean $recursive =false true: create missing parents too * @return boolean TRUE on success or FALSE on failure */ - static function mkdir ($path, $mode=0750, $options=0) + static function mkdir ($path, $mode=0750, $recursive=false) { - return $path[0] == '/' && mkdir(self::PREFIX.$path, $mode, $options); + return $path[0] == '/' && mkdir(self::PREFIX.$path, $mode, $recursive); } /** @@ -2202,9 +2202,9 @@ class Vfs * @param int $options Possible values include STREAM_REPORT_ERRORS. * @return boolean TRUE on success or FALSE on failure. */ - static function rmdir ( $path, $options=0 ) + static function rmdir($path) { - return $path[0] == '/' && rmdir(self::PREFIX.$path, $options); + return $path[0] == '/' && rmdir(self::PREFIX.$path); } /** @@ -2344,7 +2344,7 @@ class Vfs */ static function chgrp($path,$group) { - return $path[0] == '/' && chown(self::PREFIX.$path, $group); + return $path[0] == '/' && chgrp(self::PREFIX.$path, $group); } /**