Skip to content

Commit

Permalink
chore: revert portion
Browse files Browse the repository at this point in the history
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
  • Loading branch information
solracsf authored Sep 4, 2024
1 parent 7c8ea9f commit 5fc374b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/private/Files/Storage/DAV.php
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,12 @@ private function getMetaFromPropfind(string $path, array $response): array {
}

$mtime = isset($response['{DAV:}getlastmodified']) ? strtotime($response['{DAV:}getlastmodified']) : null;
$size = $type === 'dir' ? -1 : Util::numericToNumber($response['{DAV:}getcontentlength'] ?? 0);

if ($type === 'dir') {
$size = -1;
} else {
$size = Util::numericToNumber($response['{DAV:}getcontentlength'] ?? 0);
}

return [
'name' => basename($path),
Expand Down

0 comments on commit 5fc374b

Please sign in to comment.