Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path + String produces bad AnySequence result if Path ends with / and String starts with / #62

Open
lilyball opened this issue Jul 23, 2018 · 0 comments
Labels

Comments

@lilyball
Copy link

When adding a String to a Path, if the Path ends with / and the String starts with / then the results include AnySequence garbage.

import FileKit

print(Path("/Foo/bar/") + "/wat")
// prints:
// /Foo/bar/AnySequence<Path>(_box: Swift._SequenceBox<Swift._DropFirstSequence<FileKit.DirectoryEnumerator>>)

Tested with the latest develop (7521741) on Swift 4.1.2.

@phimage phimage added the bug label Aug 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants