[][src]Function lms::file_ops::copy_files

pub fn copy_files<'a, T, S>(files_to_copy: T, src: &str, dest: &str) where
    T: ParallelIterator<Item = &'a S>,
    S: FileOps + Sync + 'a, 

Copies all given files from src to dest in parallel

Arguments

  • files_to_copy: files to copy
  • src: base directory of the files to copy from, such that for all file in files_to_copy, src + file.path() is the absolute path of the source file
  • dest: base directory of the files to copy to, such that for all file in files_to_copy, dest + file.path() is the absolute path of the destination file