Skip to content

#path#MakeRelative shouldn't strip trailing slash from {path} argument #175

Closed

Description

The output of maktaba#path#MakeRelative doesn't have a trailing slash even if the {path} argument had one:
maktaba#path#MakeRelative('/foo', '/foo/bar/')'bar'

Since trailing slashes are significant in maktaba's path handling, explicitly signifying a directory path instead of a file path, it would be better to preserve any trailing slash from input to output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions