Open lilyball opened 6 years ago
When adding a String to a Path, if the Path ends with / and the String starts with / then the results include AnySequence garbage.
String
Path
/
AnySequence
import FileKit print(Path("/Foo/bar/") + "/wat") // prints: // /Foo/bar/AnySequence<Path>(_box: Swift._SequenceBox<Swift._DropFirstSequence<FileKit.DirectoryEnumerator>>)
Tested with the latest develop (7521741d10b9e4c9b3eb1501191652f821eb3142) on Swift 4.1.2.
develop
When adding a
String
to aPath
, if thePath
ends with/
and theString
starts with/
then the results includeAnySequence
garbage.Tested with the latest
develop
(7521741d10b9e4c9b3eb1501191652f821eb3142) on Swift 4.1.2.