[Filesystem][FilesystemCommonTrait] Use a dedicated directory when there are no namespace
This commit is contained in:
parent
84de1a35d2
commit
eaa767bebd
@ -35,6 +35,8 @@ trait FilesystemCommonTrait
|
||||
throw new InvalidArgumentException(sprintf('Namespace contains "%s" but only characters in [-+_.A-Za-z0-9] are allowed.', $match[0]));
|
||||
}
|
||||
$directory .= \DIRECTORY_SEPARATOR.$namespace;
|
||||
} else {
|
||||
$directory .= \DIRECTORY_SEPARATOR.'@';
|
||||
}
|
||||
if (!file_exists($directory)) {
|
||||
@mkdir($directory, 0777, true);
|
||||
|
Reference in New Issue
Block a user