Skip to content

Add rcutils_expand_user() to expand user directory in path#298

Merged
clalancette merged 1 commit intoros2:masterfrom
christophebedard:expand-user
Oct 15, 2020
Merged

Add rcutils_expand_user() to expand user directory in path#298
clalancette merged 1 commit intoros2:masterfrom
christophebedard:expand-user

Conversation

@christophebedard
Copy link
Copy Markdown
Member

Similar to Python's os.path.expanduser.

Closes #293

Implementation originally from ros2/rcl_logging#53 (but modified)

Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
Copy link
Copy Markdown
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

lgtm

@clalancette
Copy link
Copy Markdown
Contributor

Here's CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

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.

Provide util function that expands '~' (in a given C string path) to the user's home directory

3 participants