|
|
|
|
@ -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 (\OC_Util::runningOnMac()) {
|
|
|
|
|
$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);
|
|
|
|
|
|