You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/Filesystem/Filesystem.php
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -523,7 +523,8 @@ public function makePathRelative(string $endPath, string $startPath): string
523
523
* @param array $options An array of boolean options
524
524
* Valid options are:
525
525
* - $options['override'] If true, target files newer than origin files are overwritten (see copy(), defaults to false)
526
-
* - $options['copy_on_windows'] Whether to copy files instead of links on Windows (see symlink(), defaults to false)
526
+
* - $options['copy_on_windows'] (deprecated) Whether to copy files instead of links on Windows (see symlink(), defaults to false)
527
+
* - $options['follow_symlinks'] Whether to copy files instead of links, where using symlinks in not working: windows, different drive, docker context not supporting symlinks (see symlink(), defaults to false)
527
528
* - $options['delete'] Whether to delete files that are not in the source directory (defaults to false)
528
529
*
529
530
* @return void
@@ -532,6 +533,9 @@ public function makePathRelative(string $endPath, string $startPath): string
trigger_deprecation('symfony/filesystem', '6.4', 'Calling "%s()" with option "copy_on_windows" is deprecated, use "follow_symlinks" option instead.', __METHOD__);
538
+
}
535
539
$targetDir = rtrim($targetDir, '/\\');
536
540
$originDir = rtrim($originDir, '/\\');
537
541
$originDirLen = \strlen($originDir);
@@ -556,10 +560,10 @@ public function mirror(string $originDir, string $targetDir, \Traversable $itera
0 commit comments