rxsync 0.1.0

Sync tool for dir and files inspired by rsync
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::path::Path;
use rxsync::{connection::*, sync};

fn main() {
    let conn = SshCred::new(
        AuthOption::UserauthPassword("".to_string(), "".to_string()),
        "127.0.0.1".to_string(),
        "22".to_string(),
    );

    match sync(&conn, Path::new("test_sync/"), Some(Path::new("elixir"))) {
        Ok(_) => println!("okay"),
        Err(e) => println!("{:?}", e),
    }
}