Crate verbatim [] [src]

This crate provides a trait for converting a Path into a "verbatim path," which is Rust's terminology for a Windows extended-length path. Because of Windows's legacy limit of 260 characters for traditional filesystem paths, modern versions of Windows also support an alternative path format, constructed with the prefix \\?\, which supports much longer paths. Rust refers to these paths as verbatim paths.

It is important to understand that Windows does not normalize / characters for verbatim paths. When converting a path to a verbatim path, your logic must take responsibility for any normalization you might need to perform before calling any Windows APIs or serializing a path to interact with an external system.

Traits

PathExt

An extension to the std::path::Path type to provide a method for constructing an equivalent verbatim path.