Skip to main content

sync_folder

Function sync_folder 

Source
pub fn sync_folder(
    path: &Path,
    marker_exists: impl Fn(&Path, &str) -> bool,
) -> Option<&'static str>
Expand description

The sync client whose folder path is inside, or None. marker_exists answers whether a directory holds a marker file (.stfolder for Syncthing); it is a parameter so the check can be tested without touching the disk.