From 13cbd7f578a47f3730c57b379a2ae5e9996ce84c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 15 Aug 2011 22:54:38 +0200 Subject: some filesystem fixes --- lib/files.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib/files.php') diff --git a/lib/files.php b/lib/files.php index bdcae419189..dd74b086705 100644 --- a/lib/files.php +++ b/lib/files.php @@ -222,11 +222,7 @@ class OC_Files { public static function delete($dir,$file){ if(OC_User::isLoggedIn()){ $file=$dir.'/'.$file; - if(OC_Filesystem::is_file($file)){ - return OC_Filesystem::unlink($file); - }elseif(OC_Filesystem::is_dir($file)){ - return OC_Filesystem::delTree($file); - } + return OC_Filesystem::unlink($file); } } -- cgit v1.2.3