mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-12-27 10:22:40 +00:00
Rename readdir -> read_dir
This commit is contained in:
parent
d089fcc1d8
commit
4424a6df96
@ -25,7 +25,7 @@ impl Dir {
|
||||
/// pointed to by the given path. Fails if the directory can't be read, or
|
||||
/// isn't actually a directory, or if there's an IO error that occurs
|
||||
/// while scanning.
|
||||
pub fn readdir(path: &Path, git: bool) -> io::Result<Dir> {
|
||||
pub fn read_dir(path: &Path, git: bool) -> io::Result<Dir> {
|
||||
let reader = try!(fs::read_dir(path));
|
||||
let contents = try!(reader.map(|e| e.map(|e| e.path())).collect());
|
||||
|
||||
|
@ -84,7 +84,7 @@ impl<'dir> File<'dir> {
|
||||
}
|
||||
|
||||
pub fn to_dir(&self, scan_for_git: bool) -> io::Result<Dir> {
|
||||
Dir::readdir(&*self.path, scan_for_git)
|
||||
Dir::read_dir(&*self.path, scan_for_git)
|
||||
}
|
||||
|
||||
/// Whether this file is a regular file on the filesystem - that is, not a
|
||||
|
Loading…
Reference in New Issue
Block a user