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
@@ -505,13 +505,17 @@ public function makePathRelative(string $endPath, string $startPath): string
505
505
* @param array $options An array of boolean options
506
506
* Valid options are:
507
507
* - $options['override'] If true, target files newer than origin files are overwritten (see copy(), defaults to false)
508
-
* - $options['copy_on_windows'] Whether to copy files instead of links on Windows (see symlink(), defaults to false)
508
+
* - $options['copy_on_windows'] (deprecated) Whether to copy files instead of links on Windows (see symlink(), defaults to false)
509
+
* - $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)
509
510
* - $options['delete'] Whether to delete files that are not in the source directory (defaults to false)
trigger_deprecation('symfony/filesystem', '6.2', 'Calling "%s()" with option "copy_on_windows" is deprecated, use "follow_symlinks" option instead.', __METHOD__);
518
+
}
515
519
$targetDir = rtrim($targetDir, '/\\');
516
520
$originDir = rtrim($originDir, '/\\');
517
521
$originDirLen = \strlen($originDir);
@@ -536,10 +540,10 @@ public function mirror(string $originDir, string $targetDir, \Traversable $itera
0 commit comments