- commit
- 6a90b35fa22b7d3ce0fb6c06839258016658b8f5
- parent
- a73915b5e62164510f3b825e7f91d04524a79deb
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2018-10-22 18:59
rm no-op try
Diffstat
| M | utils.php | 9 | +++------ |
1 files changed, 3 insertions, 6 deletions
diff --git a/utils.php b/utils.php
@@ -7,12 +7,9 @@ function trans($s) 7 7 8 8 function rmdirs($path) 9 9 {10 -1 if ($path !== '.' && file_exists($path)) {11 -1 try {12 -1 rmdir($path);13 -1 rmdirs(dirname($path));14 -1 } finally {15 -1 }-1 10 if ($path !== '.' && is_dir($path)) { -1 11 rmdir($path); -1 12 rmdirs(dirname($path)); 16 13 } 17 14 } 18 15