[−][src]Function filecmp::cmpfiles
pub fn cmpfiles<A, B, C, D>(
_dir1: A,
_dir2: B,
_common: D,
_shallow: bool
) -> Result<(Vec<PathBuf>, Vec<PathBuf>, Vec<PathBuf>)> where
A: AsRef<Path>,
B: AsRef<Path>,
C: AsRef<Path>,
D: AsRef<[C]>,
Compare common files in two directories. (WIP)
Arguments:
- dir1 -- First directory name
- dir2 -- Second directory name
- common -- list of file names found in both directories
- shallow -- if true, do comparison based solely on stat() information
Returns a tuple of three lists:
- filepaths that compare equal
- filepaths that are different
- filepaths that aren't regular files.