ProxyFactory always checks if directory is writable first
This commit is contained in:
parent
99c1383ef5
commit
48bf5022e4
@ -153,7 +153,12 @@ class ProxyFactory
|
||||
$file = str_replace($placeholders, $replacements, $file);
|
||||
|
||||
$parentDirectory = dirname($fileName);
|
||||
if (! is_dir($parentDirectory) && ! mkdir($parentDirectory, 0775, true)) {
|
||||
|
||||
if (! is_dir($parentDirectory)) {
|
||||
mkdir($parentDirectory, 0775, true);
|
||||
}
|
||||
|
||||
if ( ! is_writable($parentDirectory)) {
|
||||
throw ProxyException::proxyDirectoryNotWritable();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user