1
Fork 0
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:
king6cong 2016-07-23 23:03:00 +08:00
parent 1c0114b1b2
commit ff7d2bae16

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);