Skip to content

Path.join(["/", "", "foo"]) != Path.join(["/", "foo"]) #4252

@benwilson512

Description

@benwilson512

This seems buggy:

iex(2)> ["/", "foo"] |> Path.join       
"/foo"
iex(3)> ["/", "", "foo"] |> Path.join
"foo"

Ruby:

irb(main):001:0> File.join("/", "", "foo")
=> "/foo"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions