enumstd.os.windows.NamespacePrefix[src]

Fields

none
local_device

\\.\ (path separators can be \ or /)

verbatim

\\?\ When converted to an NT path, everything past the prefix is left untouched and \\?\ is replaced by \??\.

fake_verbatim

\\?\ without all path separators being \. This seems to be recognized as a prefix, but the 'verbatim' aspect is not respected (i.e. if //?/C:/foo is converted to an NT path, it will become \??\C:\foo [it will be canonicalized and the //?/ won't be treated as part of the final path])

nt

\??\

Source Code

Source code
pub const NamespacePrefix = enum {
    none,
    /// `\\.\` (path separators can be `\` or `/`)
    local_device,
    /// `\\?\`
    /// When converted to an NT path, everything past the prefix is left
    /// untouched and `\\?\` is replaced by `\??\`.
    verbatim,
    /// `\\?\` without all path separators being `\`.
    /// This seems to be recognized as a prefix, but the 'verbatim' aspect
    /// is not respected (i.e. if `//?/C:/foo` is converted to an NT path,
    /// it will become `\??\C:\foo` [it will be canonicalized and the //?/ won't
    /// be treated as part of the final path])
    fake_verbatim,
    /// `\??\`
    nt,
}