Skip to content

Commit 691fc76

Browse files
authored
Update Browser.php
1 parent 7b3cd9c commit 691fc76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Browser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public function screenshot($name)
291291

292292
$directoryPath = dirname($filePath);
293293

294-
if (! file_exists($directoryPath)) {
294+
if (! is_dir($directoryPath)) {
295295
mkdir($directoryPath, 0777, true);
296296
}
297297

0 commit comments

Comments
 (0)