[Pkg-owncloud-commits] [owncloud] 16/67: fix filetype for smb storage backend

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:10:32 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.1
in repository owncloud.

commit 87a3145ba1ec6c8140b2c74e115a67c992e5de3f
Author: Robin Appelman <icewind at owncloud.com>
Date:   Thu Oct 11 21:17:48 2012 +0200

    fix filetype for smb storage backend
---
 apps/files_external/lib/smb.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/files_external/lib/smb.php b/apps/files_external/lib/smb.php
index e5ba7a1..eed2582 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
 	}
 
 	/**

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list