Skip to content

Commit

Permalink
[Filesystem] Fixed mirror for symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
COil committed Dec 27, 2013
1 parent 689df2a commit 18f27c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Filesystem.php
Expand Up @@ -393,7 +393,7 @@ public function mirror($originDir, $targetDir, \Traversable $iterator = null, $o
}
} else {
if (is_link($file)) {
$this->symlink($file, $target);
$this->symlink($file->getLinkTarget(), $target);
} elseif (is_dir($file)) {
$this->mkdir($target);
} elseif (is_file($file)) {
Expand Down

0 comments on commit 18f27c7

Please sign in to comment.