mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-14 08:24:05 +00:00
\t
This commit is contained in:
parent
57c647fee5
commit
0b30864f10
@ -37,7 +37,7 @@ impl Dir {
|
|||||||
/// entries, so if the user wants to see them, we’ll have to add them
|
/// entries, so if the user wants to see them, we’ll have to add them
|
||||||
/// ourselves after the files have been read.
|
/// ourselves after the files have been read.
|
||||||
pub fn read_dir(path: PathBuf, git: bool) -> IOResult<Dir> {
|
pub fn read_dir(path: PathBuf, git: bool) -> IOResult<Dir> {
|
||||||
info!("Reading directory {:?}", &path);
|
info!("Reading directory {:?}", &path);
|
||||||
|
|
||||||
let contents: Vec<PathBuf> = try!(fs::read_dir(&path)?
|
let contents: Vec<PathBuf> = try!(fs::read_dir(&path)?
|
||||||
.map(|result| result.map(|entry| entry.path()))
|
.map(|result| result.map(|entry| entry.path()))
|
||||||
|
@ -128,7 +128,7 @@ pub mod test {
|
|||||||
#[test]
|
#[test]
|
||||||
fn file_bytes() {
|
fn file_bytes() {
|
||||||
let mut colours = Colours::default();
|
let mut colours = Colours::default();
|
||||||
colours.size.numbers = Blue.on(Red);
|
colours.size.numbers = Blue.on(Red);
|
||||||
|
|
||||||
let directory = f::Size::Some(1048576);
|
let directory = f::Size::Some(1048576);
|
||||||
let expected = TextCell {
|
let expected = TextCell {
|
||||||
|
Loading…
Reference in New Issue
Block a user