diff options
author | nwin <nwin@users.noreply.github.com> | 2015-02-22 13:55:13 +0100 |
---|---|---|
committer | nwin <nwin@users.noreply.github.com> | 2015-02-22 13:55:13 +0100 |
commit | 3d587c4533591d0ab176869c2b2b0e2e7f3e53af (patch) | |
tree | e670c9946b8a45b6802f334bd137da889b231ab4 /src/file.rs | |
parent | 227ddc9a0c735d5e2df39763e8bd750a4e6a1c25 (diff) |
Rename attr to xattr
Diffstat (limited to 'src/file.rs')
-rw-r--r-- | src/file.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/file.rs b/src/file.rs index c8936d2..a4e8ca0 100644 --- a/src/file.rs +++ b/src/file.rs @@ -21,8 +21,8 @@ use column::Column::*; use dir::Dir; use filetype::HasType; use options::{SizeFormat, TimeType}; -use attr; -use attr::Attribute; +use xattr; +use xattr::Attribute; /// This grey value is directly in between white and black, so it's guaranteed /// to show up on either backgrounded terminal. @@ -41,7 +41,7 @@ pub struct File<'a> { pub ext: Option<String>, pub path: Path, pub stat: io::FileStat, - pub attrs: Vec<Attribute>, + pub xattrs: Vec<Attribute>, pub this: Option<Dir>, } @@ -83,7 +83,7 @@ impl<'a> File<'a> { path: path.clone(), dir: parent, stat: stat, - attrs: attr::llist(path).unwrap_or(Vec::new()), + xattrs: xattr::llist(path).unwrap_or(Vec::new()), name: filename.to_string(), ext: ext(filename.as_slice()), this: this, @@ -196,7 +196,7 @@ impl<'a> File<'a> { path: target_path.clone(), dir: self.dir, stat: stat, - attrs: attr::list(target_path).unwrap_or(Vec::new()), + xattrs: xattr::list(target_path).unwrap_or(Vec::new()), name: filename.to_string(), ext: ext(filename.as_slice()), this: None, @@ -351,7 +351,7 @@ impl<'a> File<'a> { /// attribute or not. Also returns “ ” in case the attributes cannot be read /// for some reason. fn attribute_marker(&self) -> ANSIString { - if self.attrs.len() > 0 { Plain.paint("@") } else { Plain.paint(" ") } + if self.xattrs.len() > 0 { Plain.paint("@") } else { Plain.paint(" ") } } /// Generate the "rwxrwxrwx" permissions string, like how ls does it. |