Merge pull request #923 from king6cong/tail-dir-fix

skip directory tail
This commit is contained in:
mpkh 2016-07-23 22:28:01 +04:00 committed by GitHub
commit 67fcfb02ea

View file

@ -165,6 +165,9 @@ pub fn uumain(args: Vec<String>) -> i32 {
first_header = false;
let path = Path::new(filename);
if path.is_dir() {
continue;
}
let file = File::open(&path).unwrap();
bounded_tail(&file, &settings);