[Filesystem] Check that the directory is writable after created it in dumpFile()
This commit is contained in:
parent
182dd8f7e6
commit
dbc4148535
|
@ -498,7 +498,9 @@ class Filesystem
|
|||
|
||||
if (!is_dir($dir)) {
|
||||
$this->mkdir($dir);
|
||||
} elseif (!is_writable($dir)) {
|
||||
}
|
||||
|
||||
if (!is_writable($dir)) {
|
||||
throw new IOException(sprintf('Unable to write to the "%s" directory.', $dir), 0, null, $dir);
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue