Skip to content

Clarify the behavior of \ in a file name #708

@wingo

Description

@wingo

The spec says that / is the directory separator. Does this mean that \ is permissible in file names? Of course on Linux that's fine, but I would guess that it's not fine on Windows.

Generally speaking, I think that @sunfishcode's comment from way back when (#775 (comment)) regarding case sensitivity also applies here: the point is to allow access to people's files, so we can't forbid names that are allowed by the FS (at least for paths relative to a root); so we have to allow for \ being a part of a file name in Linux. What would be the expected behavior for foo\bar in Windows, would \ be a separator also?

It would be useful if the spec had some kind of canonical orientation language to let idiots like me 🤓 know what kinds of consistency is aimed at with wasi:filesystem, and what kinds of divergences are expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wasi-filesystemIssues targeted for the `wasi-filesystem` proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions