diff options
Diffstat (limited to 'ratatoeskr/sys/utils.php')
-rw-r--r-- | ratatoeskr/sys/utils.php | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/ratatoeskr/sys/utils.php b/ratatoeskr/sys/utils.php index 60f90a8..5e0415c 100644 --- a/ratatoeskr/sys/utils.php +++ b/ratatoeskr/sys/utils.php @@ -11,29 +11,6 @@ */ /* - * Function: delete_directory - * Delete a directory and all of its content. - */ -function delete_directory($dir) -{ - $dir_content = scandir($dir); - foreach ($dir_content as $f) { - if (($f == "..") or ($f == ".")) { - continue; - } - - $f = "$dir/$f"; - - if (is_dir($f)) { - delete_directory($f); - } else { - unlink($f); - } - } - rmdir($dir); -} - -/* * Constant: SITE_BASE_PATH * The Base path of this ratatoeskr site. */ |