summaryrefslogtreecommitdiffstats
path: root/lib/files.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-08-15 22:54:38 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-08-15 22:55:14 +0200
commit13cbd7f578a47f3730c57b379a2ae5e9996ce84c (patch)
tree580579b3aae2a754cf271ee26ea3b82afba4924e /lib/files.php
parent5608aaee8a8bbf913f4abb665f18fbe510da7214 (diff)
downloadnextcloud-server-13cbd7f578a47f3730c57b379a2ae5e9996ce84c.tar.gz
nextcloud-server-13cbd7f578a47f3730c57b379a2ae5e9996ce84c.zip
some filesystem fixes
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);
}
}