Nerves.Utils.WSL.execute_wslpath

You're seeing just the function execute_wslpath, go back to Nerves.Utils.WSL module for more information.
Link to this function

execute_wslpath(file, arguments)

View Source

Specs

execute_wslpath(String.t(), list()) :: String.t() | nil

Executes wslpath with the file and arguments.

When a valid WSL path is passed through to wslpath asking for a valid path an "Invalid argument" error is returned. This function catches this error and returns the valid path.