We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc81ebd commit ad5ea4eCopy full SHA for ad5ea4e
lib/private/Files/Storage/Local.php
@@ -378,7 +378,7 @@ public function free_space($path) {
378
// disk_free_space doesn't work on files
379
$sourcePath = dirname($sourcePath);
380
}
381
- $space = @disk_free_space($sourcePath);
+ $space = function_exists('disk_free_space') ? disk_free_space($sourcePath) : false;
382
if ($space === false || is_null($space)) {
383
return \OCP\Files\FileInfo::SPACE_UNKNOWN;
384
0 commit comments