summaryrefslogtreecommitdiffstats
path: root/lib/files.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/files.php')
-rw-r--r--lib/files.php6
1 files changed, 1 insertions, 5 deletions
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);
}
}