mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
skip directory tail
This commit is contained in:
parent
1c0114b1b2
commit
ff7d2bae16
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue