Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix free space problems
Signed-off-by: Git'Fellow <[email protected]>
  • Loading branch information
solracsf authored Mar 6, 2023
commit 9ac065fb923d0918568eaba375f0669325b08443
2 changes: 1 addition & 1 deletion lib/private/Files/Storage/Local.php
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ public function free_space($path) {
// disk_free_space doesn't work on files
$sourcePath = dirname($sourcePath);
}
$space = function_exists('disk_free_space') ? disk_free_space($sourcePath) : false;
$space = is_dir($sourcePath) ? disk_free_space($sourcePath) : false;
if ($space === false || is_null($space)) {
return \OCP\Files\FileInfo::SPACE_UNKNOWN;
}
Expand Down