Git Product home page Git Product logo

movetoftp's People

Contributors

gugi9000 avatar lfalch avatar

Watchers

 avatar  avatar  avatar

movetoftp's Issues

Optinally parameter order

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

Catch errors

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 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.