Skip to content

Commit

Permalink
Screen shot auto dir creation issue
Browse files Browse the repository at this point in the history
fix #32
  • Loading branch information
gsouf committed Aug 28, 2018
1 parent 78b2e6c commit 7128a57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PageUtils/PageScreenshot.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function saveToFile(string $path, int $timeout = 5000)
// create directory
$dir = dirname($path);
if (!file_exists($dir)) {
if (!mkdir($path, 0777, true)) {
if (!mkdir($dir, 0777, true)) {
throw new FilesystemException(
sprintf('Could not create the directory %s.', $dir)
);
Expand Down

0 comments on commit 7128a57

Please sign in to comment.