pub fn should_sync( source_info: &FileInfo, target_info: Option<&FileInfo>, checksum: bool, ) -> bool
比较源文件和目标文件,决定是否需要同步
true
false