gugi9000 / movetoftp Goto Github PK
View Code? Open in Web Editor NEWA tool to **move** files to FTP.
License: MIT License
A tool to **move** files to FTP.
License: MIT License
It shuold be possible to indicate options in any order prefixed with
For example:
-f: local folder
-s: server
-p: port
-t: remote path
-u: username
-P: password
I'm aware that it might be unwanted functionality, but at least it should be an option.
Errors from local file system and remote server (or no server) should be pretty printed.
When an error is triggered the program should proceed with the rest of the job (maybe as an option) but still not return 0 on exit.
Example:
bso@BSO-M93P : H:\kode : 27-09-2016 09:12:56 :
> ls .\test\
Directory: H:\kode\test
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 27-09-2016 09:12 12 boo
-a---- 27-09-2016 09:12 12 foo
-a---- 27-09-2016 09:12 12 hoo
-a---- 27-09-2016 09:12 12 zoo
-a---- 27-09-2016 09:12 12 zåoo
bso@BSO-M93P : H:\kode : 27-09-2016 09:13:38 :
> attrib +r .\test\hoo
bso@BSO-M93P : H:\kode : 27-09-2016 09:13:47 :
> .\movetoftp\target\release\move-to-ftp.exe -f .\test\ -s ******* -u ******* -P ******
Move to FTP v0.2.0 © 2016 LFalch.com
Connecting..
Uploading .\test\boo to .//boo
Success, deleting local file
Uploading .\test\foo to .//foo
Success, deleting local file
Uploading .\test\hoo to .//hoo
Success, deleting local file
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { repr: Os { code: 5, message: "Adgang n\u{e6}gtet." } }', ../src/libcore\result.rs:788
note: Run with `RUST_BACKTRACE=1` for a backtrace.
I breaks on test\hoo as it's write protected and those not process the remaining files:
bso@BSO-M93P : H:\kode : 27-09-2016 09:14:50 :
> ls .\test\
Directory: H:\kode\test
Mode LastWriteTime Length Name
---- ------------- ------ -----
ar--- 27-09-2016 09:12 12 hoo
-a---- 27-09-2016 09:12 12 zoo
-a---- 27-09-2016 09:12 12 zåoo
I'd like support for file globbing, so you don't have to move everything from a folder.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.