summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/helpers/file_helper.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/system/helpers/file_helper.php b/system/helpers/file_helper.php
index 58951823b..6378784f4 100644
--- a/system/helpers/file_helper.php
+++ b/system/helpers/file_helper.php
@@ -132,7 +132,11 @@ if ( ! function_exists('delete_files'))
{
if (is_dir($path.'/'.$filename))
{
- delete_files($path.'/'.$filename, $del_dir, $level + 1);
+ // Ignore empty folders
+ if (substr($filename, 0, 1) != '.')
+ {
+ delete_files($path.'/'.$filename, $del_dir, $level + 1);
+ }
}
else
{