Test int permission

This commit is contained in:
Dennis Eichhorn 2017-11-05 22:29:52 +01:00
parent 1088f58ceb
commit 41afefd18d

View File

@ -391,7 +391,7 @@ class Directory extends FileAbstract implements DirectoryInterface
/**
* {@inheritdoc}
*/
public static function create(string $path, int $permission = 0644, bool $recursive = false) : bool
public static function create(string $path, int $permission = 644, bool $recursive = false) : bool
{
if (!file_exists($path)) {
if (!$recursive && !file_exists(self::parent($path))) {