1
0
Fork 0

Use shortest relative paths for symlinks

pull/4426/head
Samuel ROZE 2015-09-16 10:06:32 +01:00
parent 7267b2ed90
commit f6d5d65bcd
1 changed files with 2 additions and 1 deletions

View File

@ -48,7 +48,8 @@ class PathDownloader extends FileDownloader
}
try {
$fileSystem->symlink($realUrl, $path);
$shortestPath = $this->filesystem->findShortestPath($path, $realUrl);
$fileSystem->symlink($shortestPath, $path);
$this->io->writeError(sprintf(' Symlinked from %s', $url));
} catch (IOException $e) {
$fileSystem->mirror($realUrl, $path);