Giter VIP home page Giter VIP logo

Comments (3)

diwakergupta avatar diwakergupta commented on May 30, 2024

Hey @deanna , sorry for the delay and thanks for trying out dbxcli! Can you run with -v and paste the output? Note that unlike their POSIX variants, some dbxcli commands like mv and cp treat both <src> and <dst> as paths within your Dropbox folder. I know the documentation is lacking -- I welcome (and really appreciate) PR!

from dbxcli.

deanna avatar deanna commented on May 30, 2024

No worries on timing! Appreciate any help in general.

$ dbxcli mv -v "Photos backup-- 2011-2016/2012-*.*" "Photos backup-- 2011-2016/2012/"
2017/07/08 10:01:16 client.go:1893: arg: &{{/Photos backup-- 2011-2016/2012-*.* /Photos backup-- 2011-2016/2012//Photos backup-- 2011-2016/2012-*.*} false false}
2017/07/08 10:01:16 client.go:1910: req: &{POST https://api.dropboxapi.com/2/files/move HTTP/1.1 1 1 map[Content-Type:[application/json]] {0xc420073ce0} 0x1257b10 178 [] false api.dropboxapi.com map[] map[] <nil> map[]   <nil> <nil> <nil> <nil>}
2017/07/08 10:01:17 client.go:1914: resp: &{409 Conflict 409 HTTP/1.1 1 1 map[Date:[Sat, 08 Jul 2017 14:01:14 GMT] Content-Type:[application/json] Connection:[keep-alive] X-Dropbox-Request-Id:[d5a388d50dd091e56c0a51a81f221d71] Server:[nginx]] 0xc42034d940 -1 [chunked] false false map[] 0xc4200d4600 0xc4202f89a0}
2017/07/08 10:01:17 client.go:1927: body: {"error_summary": "from_lookup/not_found/..", "error": {".tag": "from_lookup", "from_lookup": {".tag": "not_found"}}}
Move error: &{{/Photos backup-- 2011-2016/2012-*.* /Photos backup-- 2011-2016/2012//Photos backup-- 2011-2016/2012-*.*} false false}

from dbxcli.

diwakergupta avatar diwakergupta commented on May 30, 2024

Hey @deanna , I'll try to improve the self-help documentation and error handling, but what you're trying is simply not supported, at least now. Key is what I mentioned earlier: dbxcli mv requires that both src and dst are already within your Dropbox.

Notably, your command relies on shall expansion, which means it'll only work for local files. You might be able to achieve the desired result by filtering the output of dbxcli ls and piping it into dbxcli mv with some shell-fu to glue everything together.

I'm going to close this out, but feel free to re-open (or file another issue) as needed!

from dbxcli.

Related Issues (20)

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.