// Windows Prefixes
////////////////////////////////////////////////////////////////////////////////
-/// Path prefixes (Redox and Windows only).
-///
-/// Redox uses schemes like `scheme:reference` to identify different I/O systems
+/// Path prefixes (Windows only).
///
/// Windows uses a variety of path styles, including references to drive
/// volumes (like `C:`), network shared folders (like `\\server\share`) and
os_str_as_u8_slice(s).len()
}
match *self {
- #[cfg(target_os = "redox")]
- Verbatim(x) => 1 + os_str_len(x),
- #[cfg(not(target_os = "redox"))]
Verbatim(x) => 4 + os_str_len(x),
VerbatimUNC(x, y) => {
8 + os_str_len(x) +
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-use path::Prefix;
use ffi::OsStr;
#[inline]
pub fn parse_prefix(path: &OsStr) -> Option<Prefix> {
if let Some(path_str) = path.to_str() {
- if let Some(i) = path_str.find(':') {
- Some(Prefix::Verbatim(OsStr::new(&path_str[..i])))
+ if let Some(_i) = path_str.find(':') {
+ //TODO: Redox specific prefix Some(Prefix::Verbatim(OsStr::new(&path_str[..i])))
+ None
} else {
None
}