diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2012-09-28 12:58:39 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2012-09-28 12:58:39 +0200 |
| commit | 6bde4b82ec04ee5a1622220663bcacca2ec301d6 (patch) | |
| tree | 765e9ea621686473b77eea6c957b9d70d6bffc96 | |
| parent | 56bf0267e1e3218e22992a25927a10e754bf71f3 (diff) | |
| download | phorkie-6bde4b82ec04ee5a1622220663bcacca2ec301d6.tar.gz phorkie-6bde4b82ec04ee5a1622220663bcacca2ec301d6.zip | |
do not try to delete if file does not exist
| -rw-r--r-- | src/phorkie/Tools.php | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |
