Skip to content

Fix deleteLastPathComponent() for paths with trailing / #897

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

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

rjmansfield
Copy link
Contributor

Paths like /home/ would return "" instead of /

@rjmansfield rjmansfield changed the title Fix deleteLastPathComponent() for paths with trailing /. Fix deleteLastPathComponent() for paths with trailing / Sep 3, 2024
@rjmansfield rjmansfield force-pushed the fix-deletingLastPathComponent branch from 57e7415 to 4d0d2af Compare September 4, 2024 13:55
@rjmansfield
Copy link
Contributor Author

Can someone kick swift-ci for me?

Also, can someone review the change? @parkera @jmschonfeld

@jmschonfeld
Copy link
Contributor

@swift-ci please test

@jmschonfeld jmschonfeld requested a review from jrflat September 5, 2024 15:51
Paths like /home/ would return "" instead of /
@rjmansfield rjmansfield force-pushed the fix-deletingLastPathComponent branch from 4d0d2af to 0c1e2cf Compare September 5, 2024 18:31
Copy link
Contributor

@jrflat jrflat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks for catching this!

@jmschonfeld
Copy link
Contributor

@swift-ci please test

@rjmansfield
Copy link
Contributor Author

Thanks, could someone merge on my behalf?

@jrflat
Copy link
Contributor

jrflat commented Sep 5, 2024

Yes I'll merge it shortly, thanks!

@jrflat jrflat merged commit 9d9a537 into swiftlang:main Sep 5, 2024
3 checks passed
cthielen pushed a commit to cthielen/swift-foundation that referenced this pull request Nov 8, 2024
…ftlang#897)

Paths like /home/ would return "" instead of /

Co-authored-by: Ryan Mansfield <ryan_mansfield@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants