-
Notifications
You must be signed in to change notification settings - Fork 54
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
Fix parent_path() for empty paths and paths of length one #73
Conversation
This clarifies the expected output for empty, current, and parent paths. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
In this case, return an empty path. Previously, this would result in a segmentation fault. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm with green CI
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Fixed expected output syntax on Windows: a2edff8 |
209851b
to
2035cd9
Compare
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
2035cd9
to
cf12223
Compare
Windows paths were trickier than I anticipated. @Karsten1987 @wjwwood Can you take another look? Thanks! |
Slightly unrelated, but this PR also adds tests for
exists()
to clarify it's expected behavior (36ebd99).This fixes an issue discovered downstream: https://github.com/ros2/rosbag2/pull/345/files#r442416506