file_transfer 0.1.1

Enum to transfer files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use file_transfer::ftp::*;
use std::fs::File;


/// Example
fn main() -> std::io::Result<()> {

    // Makes a FTP Enum
    let ftp = FTP::new("127.0.0.1:8080", File::open("/home/denard/Pictures/background.png").unwrap());
    // Sends the File
    ftp.send();
    Ok(())

}