Cross-platform file path handling

Type Path

type Path = PosixPath

Struct PosixPath

pub struct PosixPath {
    is_absolute: bool,
    components: ~[~str],
}

Struct WindowsPath

pub struct WindowsPath {
    host: Option<~str>,
    device: Option<~str>,
    is_absolute: bool,
    components: ~[~str],
}

Interface GenericPath

Method from_str

fn from_str(&str) -> self

Method dirname

fn dirname() -> ~str

Method filename

fn filename() -> Option<~str>

Method filestem

fn filestem() -> Option<~str>

Method filetype

fn filetype() -> Option<~str>

Method with_dirname

fn with_dirname(&str) -> self

Method with_filename

fn with_filename(&str) -> self

Method with_filestem

fn with_filestem(&str) -> self

Method with_filetype

fn with_filetype(&str) -> self

Method dir_path

fn dir_path() -> self

Method file_path

fn file_path() -> self

Method push

fn push(&str) -> self

Method push_rel

fn push_rel(&self) -> self

Method push_many

fn push_many(&[~str]) -> self

Method pop

fn pop() -> self

Method normalize

fn normalize() -> self

Implementation of core::cmp::Eq for WindowsPath

Method eq

fn eq(__other: &WindowsPath) -> bool

Method ne

fn ne(__other: &WindowsPath) -> bool

Implementation of core::cmp::Eq for PosixPath

Method eq

fn eq(__other: &PosixPath) -> bool

Method ne

fn ne(__other: &PosixPath) -> bool

Implementation for Path

Method stat

fn stat() -> Option<libc::stat>

Method lstat

fn lstat() -> Option<libc::stat>

Method exists

fn exists() -> bool

Method get_size

fn get_size() -> Option<i64>

Method get_mode

fn get_mode() -> Option<uint>

Implementation for Path

Method get_atime

fn get_atime() -> Option<(i64, int)>

Method get_mtime

fn get_mtime() -> Option<(i64, int)>

Method get_ctime

fn get_ctime() -> Option<(i64, int)>

Implementation of ToStr for PosixPath

Method to_str

fn to_str() -> ~str

Implementation of GenericPath for PosixPath

Method from_str

fn from_str(s: &str) -> PosixPath

Method dirname

fn dirname() -> ~str

Method filename

fn filename() -> Option<~str>

Method filestem

fn filestem() -> Option<~str>

Method filetype

fn filetype() -> Option<~str>

Method with_dirname

fn with_dirname(d: &str) -> PosixPath

Method with_filename

fn with_filename(f: &str) -> PosixPath

Method with_filestem

fn with_filestem(s: &str) -> PosixPath

Method with_filetype

fn with_filetype(t: &str) -> PosixPath

Method dir_path

fn dir_path() -> PosixPath

Method file_path

fn file_path() -> PosixPath

Method push_rel

fn push_rel(other: &PosixPath) -> PosixPath

Method push_many

fn push_many(cs: &[~str]) -> PosixPath

Method push

fn push(s: &str) -> PosixPath

Method pop

fn pop() -> PosixPath

Method normalize

fn normalize() -> PosixPath

Implementation of ToStr for WindowsPath

Method to_str

fn to_str() -> ~str

Implementation of GenericPath for WindowsPath

Method from_str

fn from_str(s: &str) -> WindowsPath

Method dirname

fn dirname() -> ~str

Method filename

fn filename() -> Option<~str>

Method filestem

fn filestem() -> Option<~str>

Method filetype

fn filetype() -> Option<~str>

Method with_dirname

fn with_dirname(d: &str) -> WindowsPath

Method with_filename

fn with_filename(f: &str) -> WindowsPath

Method with_filestem

fn with_filestem(s: &str) -> WindowsPath

Method with_filetype

fn with_filetype(t: &str) -> WindowsPath

Method dir_path

fn dir_path() -> WindowsPath

Method file_path

fn file_path() -> WindowsPath

Method push_rel

fn push_rel(other: &WindowsPath) -> WindowsPath

Method push_many

fn push_many(cs: &[~str]) -> WindowsPath

Method push

fn push(s: &str) -> WindowsPath

Method pop

fn pop() -> WindowsPath

Method normalize

fn normalize() -> WindowsPath

Function Path

fn Path(s: &str) -> Path

Function PosixPath

fn PosixPath(s: &str) -> PosixPath

Function WindowsPath

fn WindowsPath(s: &str) -> WindowsPath

Function normalize

fn normalize(components: &[~str]) -> ~[~str]