We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 10f234f + a9b1f52 commit 468f81eCopy full SHA for 468f81e
src/HeadlessChrome.php
@@ -132,11 +132,13 @@ public function setUrl($url)
132
/**
133
* Set the directory for render output (PDF / Screenshot)
134
* @param String $directory
135
+ * @param int $mode
136
+ * @param bool $recursive
137
*/
- public function setOutputDirectory($directory)
138
+ public function setOutputDirectory($directory, $mode = 0777, $recursive = false)
139
{
140
if (!file_exists($directory) || !realpath($directory)) {
- @mkdir($directory);
141
+ @mkdir($directory, $mode, $recursive);
142
}
143
$this->outputDirectory = realpath(trim($directory));
144
0 commit comments