From 2e365658c856e1dffd1ee748db40158fdda0edc3 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sat, 3 Mar 2012 18:02:07 +0100 Subject: better handeling of files that can behave like folder (e.g. archives) --- lib/filestorage/local.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/filestorage') diff --git a/lib/filestorage/local.php b/lib/filestorage/local.php index 8e07ce6025b..750a1fb36dd 100644 --- a/lib/filestorage/local.php +++ b/lib/filestorage/local.php @@ -21,7 +21,7 @@ class OC_Filestorage_Local extends OC_Filestorage{ return opendir($this->datadir.$path); } public function is_dir($path){ - return (is_dir($this->datadir.$path) or substr($path,-1)=='/'); + return @is_dir($this->datadir.$path); } public function is_file($path){ return is_file($this->datadir.$path); -- cgit v1.2.3