improve handeling of links
This commit is contained in:
parent
f2d78424f2
commit
66a7c35d80
1 changed files with 5 additions and 1 deletions
|
@ -116,7 +116,11 @@ class OC_FILESTORAGE_LOCAL extends OC_FILESTORAGE{
|
|||
return stat($this->datadir.$path);
|
||||
}
|
||||
public function filetype($path){
|
||||
return filetype($this->datadir.$path);
|
||||
$filetype=filetype($this->datadir.$path);
|
||||
if($filetype=='link'){
|
||||
$filetype=filetype(readlink($this->datadir.$path));
|
||||
}
|
||||
return $filetype;
|
||||
}
|
||||
public function filesize($path){
|
||||
return filesize($this->datadir.$path);
|
||||
|
|
Loading…
Reference in a new issue