I’m fairly new around rust. So please be patient with me
I tried to upload file (image/zip) to FTP, it’s ok with example provided by https://github.com/mattnenterprise/rust-ftp (ftp 2.0.0 cargo) and i stuck.
What should I do? I’ve tried with opening file and read as VEC and String (based on http://stackoverflow.com/questions/31192956/whats-the-de-facto-way-of-reading-and-writing-files-now) And failed.
What is the proper way to upload specified file by path to ftp? Couldn’t find a solution around.
Thanks for tips and help
> let mut file = File::open("/home/emjot/Pictures/test2.png").unwrap();
// what should be here? let _ = ftp_stream.put("greeting.png", &mut _AND_HERE_);