Update to file helper to return FALSE on failure.
diff --git a/system/helpers/file_helper.php b/system/helpers/file_helper.php
index 114b292..2be06ac 100644
--- a/system/helpers/file_helper.php
+++ b/system/helpers/file_helper.php
@@ -124,7 +124,9 @@
$path = rtrim($path, DIRECTORY_SEPARATOR);
if ( ! $current_dir = @opendir($path))
- return;
+ {
+ return TRUE;
+ }
while(FALSE !== ($filename = @readdir($current_dir)))
{
@@ -148,8 +150,10 @@
if ($del_dir == TRUE AND $level > 0)
{
- @rmdir($path);
+ return @rmdir($path);
}
+
+ return TRUE;
}
}