mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-09 21:48:41 +00:00
Test int permission
This commit is contained in:
parent
1088f58ceb
commit
41afefd18d
|
|
@ -391,7 +391,7 @@ class Directory extends FileAbstract implements DirectoryInterface
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@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 (!file_exists($path)) {
|
||||||
if (!$recursive && !file_exists(self::parent($path))) {
|
if (!$recursive && !file_exists(self::parent($path))) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user