Skip to content

WSL support #13

@fonsp

Description

@fonsp

To support WSL, you just check for WSL, and run the same command as in the Sys.iswindows() case.

The question is what to do with paths: one option is to assume that the provided path is a linux path, and then use

path_translated_to_windows = read(`wslpath -w $(abs_path)`, String)

to get the Windows path.

For example:
image

Note: you can use this snippet to resolve ~ and .. to absolute paths.

Another option is to detect whether the path is a linux path, windows path, or something else (e.g. URL), and convert approriately.

A third option is to let the function caller decide, but that is less cross-platformy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions