Skip to content
Snippets Groups Projects
Commit 66a7c35d authored by Robin Appelman's avatar Robin Appelman
Browse files

improve handeling of links

parent f2d78424
Branches
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment