apps/files_sharing/lib/Controllers/ShareController.php 1 location
|
@@ 316-320 (lines=5) @@
|
| 313 |
|
* The OC_Util methods require a view. This just uses the node API |
| 314 |
|
*/ |
| 315 |
|
$freeSpace = $share->getNode()->getStorage()->free_space($share->getNode()->getInternalPath()); |
| 316 |
|
if ($freeSpace < \OCP\Files\FileInfo::SPACE_UNLIMITED) { |
| 317 |
|
$freeSpace = max($freeSpace, 0); |
| 318 |
|
} else { |
| 319 |
|
$freeSpace = (INF > 0) ? INF: PHP_INT_MAX; // work around https://bugs.php.net/bug.php?id=69188 |
| 320 |
|
} |
| 321 |
|
|
| 322 |
|
$maxUploadFilesize = $freeSpace; |
| 323 |
|
|
lib/private/legacy/helper.php 1 location
|
@@ 476-481 (lines=6) @@
|
| 473 |
|
*/ |
| 474 |
|
public static function freeSpace($dir) { |
| 475 |
|
$freeSpace = \OC\Files\Filesystem::free_space($dir); |
| 476 |
|
if ($freeSpace < \OCP\Files\FileInfo::SPACE_UNLIMITED) { |
| 477 |
|
$freeSpace = max($freeSpace, 0); |
| 478 |
|
return $freeSpace; |
| 479 |
|
} else { |
| 480 |
|
return (INF > 0)? INF: PHP_INT_MAX; // work around https://bugs.php.net/bug.php?id=69188 |
| 481 |
|
} |
| 482 |
|
} |
| 483 |
|
|
| 484 |
|
/** |