1
0
Fork 0

trim trailng slash from symlink names

symlink names are not allowed to contain
a trailing slash, so trim it.
pull/5164/head
Christoph Herbst 2016-04-07 12:55:52 +02:00
parent 40c14709f7
commit cbfd83ba0e
1 changed files with 1 additions and 0 deletions

View File

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