pub fn sync(src: &Path, target: &Path, resolve: &ConflictResolver) {
	println!("Syncing..");
	println!("Base dir: {}", src.display());
	println!("Target dir: {}", target.display());

	for i in fs::read_dir(src).unwrap() {
		let entry = i.unwrap();
		let original_location = &entry.path();
		let file_name = &entry.file_name();
		let new_location = &target.clone().join(file_name);

		println!(
			"{} -> {}",
			original_location.display(),
			new_location.display()
		);
		link(original_location, new_location, resolve).expect("Unable to perform this action");
	}
}
/// Syncs files in the `src` to `target`.
/// `src` has the meaning the path where we will get the link from
/// `target` has the meaning where the link will point to
Syncs files in the `src` to `target`.
`src` has the meaning the path where we will get the link from
`target` has the meaning where the link will point to
Syncs files in the ` src ` to ` target ` . ` src ` has the meaning the path where we will get the link from ` target ` has the meaning where the link will point to
pub fn sync(src: &Path, target: &Path, resolve: &ConflictResolver) {
	println!("Syncing..");
	println!("Base dir: {}", src.display());
	println!("Target dir: {}", target.display());
	for i in fs::read_dir(src).unwrap() {
		let entry = i.unwrap();
		let original_location = &entry.path();
		let file_name = &entry.file_name();
		let new_location = &target.clone().join(file_name);
		println!(
			"{} -> {}",
			original_location.display(),
			new_location.display()
		);
		link(original_location, new_location, resolve).expect("Unable to perform this action");
	}
}
pub fn sync ( src : & Path , target : & Path , resolve : & ConflictResolver ) { println ! ( " " ) ; println ! ( " " src display ( ) ) ; println ! ( " " target display ( ) ) ; for i in fs :: read_dir ( src ) . unwrap ( ) { let entry = i . unwrap ( ) ; let original_location = & entry . path ( ) ; let file_name = & entry . file_name ( ) ; let new_location = & target . clone ( ) . join ( file_name ) ; println ! ( " " original_location display ( ) new_location display ( ) ) ; link ( original_location , new_location , resolve ) . expect ( " " ) ; } }
Syncs files in the `src` to `target`.
Syncs files in the ` src ` to ` target ` .
src
&Path
target
&Path
resolve
&ConflictResolver
src
&Path
target
&Path
resolve
&ConflictResolver