fix not working removing of directories and changing group ownership

This commit is contained in:
Ralf Becker 2016-08-02 12:18:51 +02:00
parent 6d9daa036b
commit d6043be127

View File

@ -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);
}
/**