File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -805,15 +805,11 @@ public function xtestLongPath() {
805805 $ ds = DIRECTORY_SEPARATOR ;
806806 /*
807807 * 4096 is the maximum path length in file_cache.path in *nix
808- * 1024 is the max path length in mac
809808 */
810809 $ folderName = 'abcdefghijklmnopqrstuvwxyz012345678901234567890123456789 ' ;
811810 $ tmpdirLength = strlen (Server::get (ITempManager::class)->getTemporaryFolder ());
812- if (PHP_OS_FAMILY === 'Darwin ' ) { // macOS
813- $ depth = ((1024 - $ tmpdirLength ) / 57 );
814- } else {
815- $ depth = ((4000 - $ tmpdirLength ) / 57 );
816- }
811+ $ depth = ((4000 - $ tmpdirLength ) / 57 );
812+
817813 foreach (range (0 , $ depth - 1 ) as $ i ) {
818814 $ longPath .= $ ds . $ folderName ;
819815 $ result = $ rootView ->mkdir ($ longPath );
You can’t perform that action at this time.
0 commit comments