Skip to content

[bug] path.join('', 'a') returns "/a" instead of "a" #13313

@alinnert

Description

@alinnert

Currently, Tauri's path.join('', 'a') returns "/a" which is an unexpected absolute path. Node's version of this function however returns "a" and I think that's correct. It looks like '' gets treated as a valid path segment and connected with 'a' into '<emptystring>/a' instead of being filtered. You can work around this issue by replacing '' with '.' though which I guess gets concatenated to './a' and then normalized to just 'a'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions