mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-05 20:37:52 +00:00
Fix other platforms than macos.
This commit is contained in:
parent
a3460cf031
commit
227ddc9a0c
@ -2,6 +2,7 @@
|
|||||||
use std::old_io as io;
|
use std::old_io as io;
|
||||||
|
|
||||||
/// Extended attribute
|
/// Extended attribute
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct Attribute;
|
pub struct Attribute;
|
||||||
|
|
||||||
impl Attribute {
|
impl Attribute {
|
||||||
@ -18,12 +19,12 @@ impl Attribute {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Lists the extended attributes. Follows symlinks like `stat`
|
/// Lists the extended attributes. Follows symlinks like `stat`
|
||||||
pub fn list(path: &Path) -> io::IoResult<Vec<Attribute>> {
|
pub fn list(_: &Path) -> io::IoResult<Vec<Attribute>> {
|
||||||
Vec::new()
|
Ok(Vec::new())
|
||||||
}
|
}
|
||||||
/// Lists the extended attributes. Does not follow symlinks like `lstat`
|
/// Lists the extended attributes. Does not follow symlinks like `lstat`
|
||||||
pub fn llist(path: &Path) -> io::IoResult<Vec<Attribute>> {
|
pub fn llist(_: &Path) -> io::IoResult<Vec<Attribute>> {
|
||||||
Vec::new()
|
Ok(Vec::new())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns true if the extended attribute feature is implemented on this platform.
|
/// Returns true if the extended attribute feature is implemented on this platform.
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
#![feature(collections, core, env, libc, old_io, old_path, plugin, std_misc)]
|
#![feature(collections, core, env, libc, old_io, old_path, plugin, std_misc)]
|
||||||
|
// Other platforms then macos don’t need std_misc but you can’t
|
||||||
|
// use #[cfg] on features.
|
||||||
|
#![allow(unused_features)]
|
||||||
|
|
||||||
extern crate ansi_term;
|
extern crate ansi_term;
|
||||||
extern crate datetime;
|
extern crate datetime;
|
||||||
|
@ -226,7 +226,7 @@ impl View {
|
|||||||
columns: try!(Columns::deduce(matches)),
|
columns: try!(Columns::deduce(matches)),
|
||||||
header: matches.opt_present("header"),
|
header: matches.opt_present("header"),
|
||||||
tree: matches.opt_present("recurse"),
|
tree: matches.opt_present("recurse"),
|
||||||
ext_attr: matches.opt_present("extended"),
|
ext_attr: attr::feature_implemented() && matches.opt_present("extended"),
|
||||||
filter: filter,
|
filter: filter,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user