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:
parent
df92a97f5b
commit
3606b4a8ba
|
@ -193,7 +193,7 @@ class OwnershipTransferService {
|
||||||
$output->writeln('Validating quota');
|
$output->writeln('Validating quota');
|
||||||
$size = $view->getFileInfo($sourcePath, false)->getSize(false);
|
$size = $view->getFileInfo($sourcePath, false)->getSize(false);
|
||||||
$freeSpace = $view->free_space($destinationUid . '/files/');
|
$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>');
|
$output->writeln('<error>Target user does not have enough free space available.</error>');
|
||||||
throw new \Exception('Execution terminated.');
|
throw new \Exception('Execution terminated.');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue