-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Description
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.
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
Labels
No labels
