summaryrefslogtreecommitdiffstats
path: root/lib/filestorage
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-03-03 20:45:17 +0100
committerRobin Appelman <icewind@owncloud.com>2012-03-03 21:23:35 +0100
commit72947e46d1a4c6066f561d3e49c032f23589e4e1 (patch)
tree616994ecb822101b9090fb500322876253922468 /lib/filestorage
parentbb97cbbb0c7a58513e28d363c03ede4918034f21 (diff)
downloadnextcloud-server-72947e46d1a4c6066f561d3e49c032f23589e4e1.tar.gz
nextcloud-server-72947e46d1a4c6066f561d3e49c032f23589e4e1.zip
small improvement for is_dir
Diffstat (limited to 'lib/filestorage')
-rw-r--r--lib/filestorage/local.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/filestorage/local.php b/lib/filestorage/local.php
index 750a1fb36dd..25c3d767401 100644
--- a/lib/filestorage/local.php
+++ b/lib/filestorage/local.php
@@ -21,7 +21,10 @@ class OC_Filestorage_Local extends OC_Filestorage{
return opendir($this->datadir.$path);
}
public function is_dir($path){
- return @is_dir($this->datadir.$path);
+ if(substr($path,-1)=='/'){
+ $path=substr($path,0,-1);
+ }
+ return is_dir($this->datadir.$path);
}
public function is_file($path){
return is_file($this->datadir.$path);