diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2017-12-11 11:18:40 +0100 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2017-12-11 11:18:40 +0100 |
commit | 13a78db0769cfa442f76e026ef9e925a80549069 (patch) | |
tree | 82d14d519b4bbc1b75ec52bf5c5b954f2f4e6830 | |
parent | c3ec58cc0f02ea0db27633f34a117de3c4475526 (diff) |
Use Metadata::is_dir
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1609,7 +1609,7 @@ impl Bindings { if let Some(h) = options.input_header.as_ref() { if let Ok(md) = std::fs::metadata(h) { - if !md.is_file() { + if md.is_dir() { eprintln!("error: '{}' is a folder", h); return Err(()); } |