Function ubiquity::detect::find_updates [] [src]

pub fn find_updates<N, P>(archive: &Archive, search: &mut SearchDirectories, config: &SyncInfo<N>, progress_callback: &P) -> Result<DetectionResult<N>, SyncError> where N: NumRoots, P: ProgressCallback

This mammoth function detects all differences between the two replicas, inside the provided search directories.

If the recurse field of SearchDirectories is true, then all subdirectories will be added to the list. If recurse is false, then just the items in that directory will be considered.

The archive is used to speed up update detection by comparing the ino and ctime properties of a file/directory to a previously known value, instead of directly comparing file contents accross replicas.