Skip to content

Commit

Permalink
Fix mkdir() file exists bug #172
Browse files Browse the repository at this point in the history
  • Loading branch information
Torann committed Mar 10, 2020
1 parent 0f6e163 commit 15c7cb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Services/MaxMindDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public function boot()

// Copy test database for now
if (is_file($path) === false) {
mkdir(str_replace('/geoip.mmdb', '', $path));
@mkdir(dirname($path));

copy(__DIR__ . '/../../resources/geoip.mmdb', $path);
}

Expand Down

0 comments on commit 15c7cb3

Please sign in to comment.