1
0
Fork 0

Merge remote-tracking branch 'cherbst/trim-trailing-slash-from-symlink-names' into 1.0

pull/5177/head
Jordi Boggiano 2016-04-11 13:11:23 +01:00
commit b981c1e09d
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ class PathDownloader extends FileDownloader
$absolutePath = getcwd() . DIRECTORY_SEPARATOR . $path; $absolutePath = getcwd() . DIRECTORY_SEPARATOR . $path;
} }
$shortestPath = $this->filesystem->findShortestPath($absolutePath, $realUrl); $shortestPath = $this->filesystem->findShortestPath($absolutePath, $realUrl);
$path = rtrim($path,"/");
$fileSystem->symlink($shortestPath, $path); $fileSystem->symlink($shortestPath, $path);
$this->io->writeError(sprintf(' Symlinked from %s', $url)); $this->io->writeError(sprintf(' Symlinked from %s', $url));
} }