Skip to content

Commit 9514029

Browse files
added "create map folder if not exists"
1 parent 4f393ca commit 9514029

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

helper/atlas.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@ function updateLocalMap($path, $serverMapURL, $newTiles, $tiles2remove, $delete
8080
$nSubTiles2Dwn = 4;
8181
$nSubTiles2Del = 64;
8282

83+
if(!file_exists($path)) mkdir($path, 0755); //check if map folder exists and eventually create it
84+
8385
$diskFree = intval((disk_free_space($path)*100)/disk_total_space($path));
84-
//$debug = fopen("/var/www/html/ochin/atlas_tiles/debug.txt", 'w');
8586
//download the selected tiles and the ones over them with lower zoom factor
8687
foreach($tiles as $tile)
8788
{

0 commit comments

Comments
 (0)