[−][src]Function lms::file_ops::compare_and_copy_files_sequential
pub fn compare_and_copy_files_sequential<'a, T, S, H>(
files_to_compare: T,
src: &str,
dest: &str,
flags: HashSet<Flag, H>
) where
T: IntoIterator<Item = &'a S>,
S: FileOps + Sync + 'a,
H: BuildHasher + Sync + Send,
Compares all files in files_to_compare
in src
with all files in files_to_compare
in dest
and copies them over if they are different, sequentially
Arguments
files_to_compare
: files to comparesrc
: base directory of the files to copy from, such that for allfile
infiles_to_compare
,src + file.path()
is the absolute path of the source filedest
: base directory of the files to copy to, such that for allfile
infiles_to_compare
,dest + file.path()
is the absolute path of the destination fileflags
: set for Flag's