changeset 54:624c50e1b52d

Fix 'mgtool clean' to not attempt deleting files that do not exist.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 12 Sep 2016 13:49:26 +0300
parents 4c0a08b0ef65
children b1fa4fd593d1
files mgtool.php
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mgtool.php	Wed Jul 20 04:39:56 2016 +0300
+++ b/mgtool.php	Mon Sep 12 13:49:26 2016 +0300
@@ -314,6 +314,7 @@
       rmdir($path);
   }
   else
+  if (file_exists($path))
   {
     if (!$recurse)
       echo " - ".$path."\n";