Function std::sys::windows::path::get_long_path

source ·
pub(crate) fn get_long_path(
    path: Vec<u16>,
    prefer_verbatim: bool
) -> Result<Vec<u16>>
Expand description

Get a normalized absolute path that can bypass path length limits.

Setting prefer_verbatim to true suggests a stronger preference for verbatim paths even when not strictly necessary. This allows the Windows API to avoid repeating our work. However, if the path may be given back to users or passed to other application then it’s preferable to use non-verbatim paths when possible. Non-verbatim paths are better understood by users and handled by more software.