aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2023-03-07 00:13:57 +0100
committerGitHub <noreply@github.com>2023-03-07 00:13:57 +0100
commit9ac065fb923d0918568eaba375f0669325b08443 (patch)
treec3e310a12b3e614b64d2480eb05189946f5b1bc1
parent394ad988c7157c0f576b78d591e48e330fe6ca7f (diff)
downloadnextcloud-server-9ac065fb923d0918568eaba375f0669325b08443.tar.gz
nextcloud-server-9ac065fb923d0918568eaba375f0669325b08443.zip
Fix free space problems
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
-rw-r--r--lib/private/Files/Storage/Local.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php
index fe6a6d6e21a..2f1248a79b2 100644
--- a/lib/private/Files/Storage/Local.php
+++ b/lib/private/Files/Storage/Local.php
@@ -418,7 +418,7 @@ class Local extends \OC\Files\Storage\Common {
// 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;
}