mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
Merge pull request #923 from king6cong/tail-dir-fix
skip directory tail
This commit is contained in:
commit
67fcfb02ea
1 changed files with 3 additions and 0 deletions
|
@ -165,6 +165,9 @@ pub fn uumain(args: Vec<String>) -> i32 {
|
||||||
first_header = false;
|
first_header = false;
|
||||||
|
|
||||||
let path = Path::new(filename);
|
let path = Path::new(filename);
|
||||||
|
if path.is_dir() {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
let file = File::open(&path).unwrap();
|
let file = File::open(&path).unwrap();
|
||||||
bounded_tail(&file, &settings);
|
bounded_tail(&file, &settings);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue