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 Sep 17, 2024
1 parent 6c97ecf commit 6532ccb
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 6532ccb

Please sign in to comment.