Do not exit if available space cannot be determined on file transfer

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-07-09 15:02:21 +02:00 committed by backportbot[bot]
parent df92a97f5b
commit 3606b4a8ba
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ class OwnershipTransferService {
$output->writeln('Validating quota');
$size = $view->getFileInfo($sourcePath, false)->getSize(false);
$freeSpace = $view->free_space($destinationUid . '/files/');
if ($size > $freeSpace) {
if ($size > $freeSpace && $freeSpace !== -2) {
$output->writeln('<error>Target user does not have enough free space available.</error>');
throw new \Exception('Execution terminated.');
}