git.cweiske.de
/
phorkie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
56bf026
)
do not try to delete if file does not exist
author
Christian Weiske
<cweiske@cweiske.de>
Fri, 28 Sep 2012 10:58:39 +0000
(12:58 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Fri, 28 Sep 2012 10:58:39 +0000
(12:58 +0200)
src/phorkie/Tools.php
patch
|
blob
|
history
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)
{
+ if (!file_exists($path)) {
+ return true;
+ }
if (!is_dir($path) || is_link($path)) {
return unlink($path);
}