Merge pull request #4105 from gmsantosxl/master
Remove extra '/' when findShortestPath $from is a directorypull/4051/merge
commit
7351136205
|
@ -316,7 +316,7 @@ class Filesystem
|
|||
$to = lcfirst($this->normalizePath($to));
|
||||
|
||||
if ($directories) {
|
||||
$from .= '/dummy_file';
|
||||
$from = rtrim($from, '/') . '/dummy_file';
|
||||
}
|
||||
|
||||
if (dirname($from) === dirname($to)) {
|
||||
|
|
|
@ -112,6 +112,7 @@ class FilesystemTest extends TestCase
|
|||
array('/foo/bar_vendor', '/foo/bar', '../bar', true),
|
||||
array('/foo/bar_vendor', '/foo/bar/src', '../bar/src', true),
|
||||
array('/foo/bar_vendor/src2', '/foo/bar/src/lib', '../../bar/src/lib', true),
|
||||
array('C:/', 'C:/foo/bar/', "foo/bar", true),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue