aboutsummaryrefslogtreecommitdiffstats
path: root/lib/filestorage
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-03-03 18:02:07 +0100
committerRobin Appelman <icewind@owncloud.com>2012-03-03 21:23:35 +0100
commit2e365658c856e1dffd1ee748db40158fdda0edc3 (patch)
tree7b43b4a6057796fbc65a0dce9af13e062fb9497d /lib/filestorage
parent4c45483ad3acd5b675e54893686f912a32f10a12 (diff)
downloadnextcloud-server-2e365658c856e1dffd1ee748db40158fdda0edc3.tar.gz
nextcloud-server-2e365658c856e1dffd1ee748db40158fdda0edc3.zip
better handeling of files that can behave like folder (e.g. archives)
Diffstat (limited to 'lib/filestorage')
-rw-r--r--lib/filestorage/local.php2
1 files changed, 1 insertions, 1 deletions
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);