mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 07:28:14 +01:00
fix not working removing of directories and changing group ownership
This commit is contained in:
parent
6d9daa036b
commit
d6043be127
@ -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.
|
* 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 string $path
|
||||||
* @param int $mode
|
* @param int $mode =0750
|
||||||
* @param int $options Posible values include STREAM_REPORT_ERRORS and STREAM_MKDIR_RECURSIVE
|
* @param boolean $recursive =false true: create missing parents too
|
||||||
* @return boolean TRUE on success or FALSE on failure
|
* @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.
|
* @param int $options Possible values include STREAM_REPORT_ERRORS.
|
||||||
* @return boolean TRUE on success or FALSE on failure.
|
* @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)
|
static function chgrp($path,$group)
|
||||||
{
|
{
|
||||||
return $path[0] == '/' && chown(self::PREFIX.$path, $group);
|
return $path[0] == '/' && chgrp(self::PREFIX.$path, $group);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user