mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
chore: drop unused Darwin range test variation
Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
parent
d95ce6ac92
commit
511f54324a
1 changed files with 2 additions and 6 deletions
|
|
@ -805,15 +805,11 @@ class ViewTest extends \Test\TestCase {
|
|||
$ds = DIRECTORY_SEPARATOR;
|
||||
/*
|
||||
* 4096 is the maximum path length in file_cache.path in *nix
|
||||
* 1024 is the max path length in mac
|
||||
*/
|
||||
$folderName = 'abcdefghijklmnopqrstuvwxyz012345678901234567890123456789';
|
||||
$tmpdirLength = strlen(Server::get(ITempManager::class)->getTemporaryFolder());
|
||||
if (PHP_OS_FAMILY === 'Darwin') { // macOS
|
||||
$depth = ((1024 - $tmpdirLength) / 57);
|
||||
} else {
|
||||
$depth = ((4000 - $tmpdirLength) / 57);
|
||||
}
|
||||
$depth = ((4000 - $tmpdirLength) / 57);
|
||||
|
||||
foreach (range(0, $depth - 1) as $i) {
|
||||
$longPath .= $ds . $folderName;
|
||||
$result = $rootView->mkdir($longPath);
|
||||
|
|
|
|||
Loading…
Reference in a new issue