diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-08-15 22:54:38 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-08-15 22:55:14 +0200 |
commit | 13cbd7f578a47f3730c57b379a2ae5e9996ce84c (patch) | |
tree | 580579b3aae2a754cf271ee26ea3b82afba4924e /lib/files.php | |
parent | 5608aaee8a8bbf913f4abb665f18fbe510da7214 (diff) | |
download | nextcloud-server-13cbd7f578a47f3730c57b379a2ae5e9996ce84c.tar.gz nextcloud-server-13cbd7f578a47f3730c57b379a2ae5e9996ce84c.zip |
some filesystem fixes
Diffstat (limited to 'lib/files.php')
-rw-r--r-- | lib/files.php | 6 |
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); } } |