diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-10-11 21:17:48 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-10-11 22:18:34 +0200 |
commit | 92ddefe5a6b549daf267322f8e25942d4970de7c (patch) | |
tree | a3919d0557c695caafdcf7e8dfd43e05de8b46e9 /apps/files_external/lib | |
parent | 5698c8519ad48e9ffa4497e8ce951888922903c3 (diff) | |
download | nextcloud-server-92ddefe5a6b549daf267322f8e25942d4970de7c.tar.gz nextcloud-server-92ddefe5a6b549daf267322f8e25942d4970de7c.zip |
fix filetype for smb storage backend
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r-- | apps/files_external/lib/smb.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/smb.php b/apps/files_external/lib/smb.php index e5ba7a17743..eed2582dc99 100644 --- a/apps/files_external/lib/smb.php +++ b/apps/files_external/lib/smb.php @@ -59,7 +59,7 @@ class OC_FileStorage_SMB extends OC_FileStorage_StreamWrapper{ } public function filetype($path) { - return (bool)@$this->opendir($path);//using opendir causes the same amount of requests and caches the content of the folder in one go + return (bool)@$this->opendir($path) ? 'dir' : 'file';//using opendir causes the same amount of requests and caches the content of the folder in one go } /** |