From 170f64270c53e8d783db0afd798ca6e355d68693 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 14 Feb 2010 18:00:05 +0100 Subject: remove empty folders Signed-off-by: Florian Pritz --- system/application/models/file_mod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/application') diff --git a/system/application/models/file_mod.php b/system/application/models/file_mod.php index 3d7aa6eec..46efe6562 100644 --- a/system/application/models/file_mod.php +++ b/system/application/models/file_mod.php @@ -100,7 +100,7 @@ class File_mod extends Model { if($this->unused_file($filedata['hash'])) { unlink($this->file($filedata['hash'])); - // TODO: remove empty folders + @rmdir($this->folder($filedata['hash'])); } } -- cgit v1.2.3-24-g4f1b