aboutsummaryrefslogtreecommitdiff
path: root/src/Phorkie/Tools.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-04-03 20:15:57 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-04-03 20:15:57 +0200
commit2b4b34a76f42841e964a549fc64c02ba4f60a3f4 (patch)
treec83a973cae8d45e01384dabe4ad33dc40c09a5d1 /src/Phorkie/Tools.php
parent7dcd592544ae0b55d0e205ff83631067a0d0aa6b (diff)
downloadphorkie-2b4b34a76f42841e964a549fc64c02ba4f60a3f4.tar.gz
phorkie-2b4b34a76f42841e964a549fc64c02ba4f60a3f4.zip
rename Phorkie to phorkie (lowercase)
Diffstat (limited to 'src/Phorkie/Tools.php')
-rw-r--r--src/Phorkie/Tools.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/Phorkie/Tools.php b/src/Phorkie/Tools.php
deleted file mode 100644
index 8e67fe2..0000000
--- a/src/Phorkie/Tools.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-namespace Phorkie;
-
-
-class Tools
-{
- public static function recursiveDelete($path)
- {
- if (!is_dir($path) || is_link($path)) {
- return unlink($path);
- }
- foreach (scandir($path) as $file) {
- if ($file == '.' || $file == '..') {
- continue;
- }
- $filepath = $path . DIRECTORY_SEPARATOR . $file;
- if (!static::recursiveDelete($filepath)) {
- return false;
- };
- }
- return rmdir($path);
- }
-
-}
-
-?> \ No newline at end of file