Merge pull request #22181 from nextcloud/backport/21775/stable19
[stable19] Do not exit if available space cannot be determined on file transfer
This commit is contained in:
commit
1d123c0ccb
|
@ -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 !== FileInfo::SPACE_UNKNOWN) {
|
||||
$output->writeln('<error>Target user does not have enough free space available.</error>');
|
||||
throw new \Exception('Execution terminated.');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue