mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Merge pull request #923 from king6cong/tail-dir-fix
skip directory tail
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user