Skip to content

Commit 15c7cb3

Browse files
committed
Fix mkdir() file exists bug #172
1 parent 0f6e163 commit 15c7cb3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Services/MaxMindDatabase.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ public function boot()
2626

2727
// Copy test database for now
2828
if (is_file($path) === false) {
29-
mkdir(str_replace('/geoip.mmdb', '', $path));
29+
@mkdir(dirname($path));
30+
3031
copy(__DIR__ . '/../../resources/geoip.mmdb', $path);
3132
}
3233

0 commit comments

Comments
 (0)