lcs-image-diff 0.1.7

Image diff tool with LCS algorithm
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::io;
use std::path::Path;
use std::fs::create_dir_all;

pub fn mkdirp<P: AsRef<Path>>(p: P) -> io::Result<()> {
    if let Err(e) = create_dir_all(p) {
        if e.kind() != io::ErrorKind::AlreadyExists {
            return Ok(());
        }
        return Err(e);
    }
    Ok(())
}