From 6bde4b82ec04ee5a1622220663bcacca2ec301d6 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Fri, 28 Sep 2012 12:58:39 +0200 Subject: do not try to delete if file does not exist --- src/phorkie/Tools.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/phorkie/Tools.php') diff --git a/src/phorkie/Tools.php b/src/phorkie/Tools.php index 9435dc0..1d3d226 100644 --- a/src/phorkie/Tools.php +++ b/src/phorkie/Tools.php @@ -13,6 +13,9 @@ class Tools */ public static function recursiveDelete($path) { + if (!file_exists($path)) { + return true; + } if (!is_dir($path) || is_link($path)) { return unlink($path); } -- cgit v1.2.3