pub fn path_to_os_str(path: &Path) -> &OsStr
Returns a path as an OsStr for use in command arguments.
OsStr
Provides lossless path representation for system commands and APIs.