mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Use constant instead of magic number
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
1690aa7d54
commit
3215a9f191
1 changed files with 1 additions and 1 deletions
|
|
@ -190,7 +190,7 @@ class OwnershipTransferService {
|
|||
$output->writeln('Validating quota');
|
||||
$size = $view->getFileInfo($sourcePath, false)->getSize(false);
|
||||
$freeSpace = $view->free_space($destinationUid . '/files/');
|
||||
if ($size > $freeSpace && $freeSpace !== -2) {
|
||||
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 a new issue