|
@@ -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()))
|