small fix for normalizing paths in archives

This commit is contained in:
Robin Appelman 2012-08-19 06:15:33 +02:00
parent 50cc5d5921
commit 7f6a037b8c

View file

@ -38,10 +38,10 @@ class OC_Filestorage_Archive extends OC_Filestorage_Common{
return $this->archive->remove($path.'/');
}
public function opendir($path){
$path=$this->stripPath($path);
if(substr($path,-1)!=='/'){
$path.='/';
}
$path=$this->stripPath($path);
$files=$this->archive->getFolder($path);
$content=array();
foreach($files as $file){