Trait path_filetype::unix::PathFileType[][src]

pub trait PathFileType {
    fn filetype(&self) -> Result<FileType>;
fn is_symlink(&self) -> bool;
fn is_char_device(&self) -> bool;
fn is_block_device(&self) -> bool;
fn is_fifo(&self) -> bool;
fn is_socket(&self) -> bool; }

Required methods

返回一个枚举类型结果 FileType

判断路径是否为一个链接

判断路径是否为字符设备文件

判断路径是否为块设备文件

判断路径是否为管道文件

判断路径是否为套接字文件

Implementations on Foreign Types

Implementors