diff options
-rw-r--r-- | mirror.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -66,6 +66,12 @@ fwrite($al,date('Y-m-d H:i:s')." ".$pfad."\n"); fclose($al); + if (file_exists($pfad)) { + $stat = stat($pfad); + if ($stat['size'] == 0) + unlink($pfad); + } + if (! file_exists($pfad)) { passthru( "mkdir -p '".dirname($pfad)."'; ". |