git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move load method to top
[phorkie.git]
/
src
/
phorkie
/
Tools.php
diff --git
a/src/phorkie/Tools.php
b/src/phorkie/Tools.php
index 9435dc047d560624036e464ccf76851c5b49ad2c..1d3d2260ebc8aaa27af0ac06aa753f68977f3d45 100644
(file)
--- a/
src/phorkie/Tools.php
+++ b/
src/phorkie/Tools.php
@@
-13,6
+13,9
@@
class Tools
*/
public static function recursiveDelete($path)
{
*/
public static function recursiveDelete($path)
{
+ if (!file_exists($path)) {
+ return true;
+ }
if (!is_dir($path) || is_link($path)) {
return unlink($path);
}
if (!is_dir($path) || is_link($path)) {
return unlink($path);
}