Skip to content

Commit

Permalink
Update apps/dav/lib/Connector/Sabre/ZipFolderPlugin.php
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux authored and come-nc committed Sep 20, 2024
1 parent a69f678 commit 37741d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/dav/lib/Connector/Sabre/ZipFolderPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ protected function streamNode(Streamer $streamer, NcNode $node, string $rootPath
}
}

public function handleDownload(Request $request, Response $response): null|false {
/**
* @return false|null
*/
public function handleDownload(Request $request, Response $response): bool|null {
$node = $this->tree->getNodeForPath($request->getPath());
if (!($node instanceof \OCA\DAV\Connector\Sabre\Directory)) {
// only handle directories
Expand Down

0 comments on commit 37741d5

Please sign in to comment.