Skip to content

Commit 468f81e

Browse files
committed
2 parents 10f234f + a9b1f52 commit 468f81e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/HeadlessChrome.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,13 @@ public function setUrl($url)
132132
/**
133133
* Set the directory for render output (PDF / Screenshot)
134134
* @param String $directory
135+
* @param int $mode
136+
* @param bool $recursive
135137
*/
136-
public function setOutputDirectory($directory)
138+
public function setOutputDirectory($directory, $mode = 0777, $recursive = false)
137139
{
138140
if (!file_exists($directory) || !realpath($directory)) {
139-
@mkdir($directory);
141+
@mkdir($directory, $mode, $recursive);
140142
}
141143
$this->outputDirectory = realpath(trim($directory));
142144
}

0 commit comments

Comments
 (0)