Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename a file? #66

Closed
markdomansky opened this issue Mar 9, 2017 · 2 comments
Closed

Rename a file? #66

markdomansky opened this issue Mar 9, 2017 · 2 comments

Comments

@markdomansky
Copy link

Am I doing something wrong? There doesn't seem to be a way to rename or copy a file to a new name.

I've tried the following:
dbxcli cp x.txt test/y.txt
dbxcli mv x.txt y.txt
Both end up with a folder (/test/y.txt or /y.txt respectively) with x.txt inside it.

I'd settle for a 'ren' command, but I'd like to see support with cp and mv commands.

@diwakergupta
Copy link
Collaborator

@markdomansky thanks for the report. Let me dig into this and get back to you. Might just be a matter of improving documentation and providing some more examples.

@diwakergupta
Copy link
Collaborator

@markdomansky both cp and mv should work for your use-case. For instance, assuming you have a file x.txt and a folder test in your Dropbox, the following should work (I tested in my Dropbox):

$ dbxcli cp x.txt test // will leave a copy of x.txt in the root
$ dbxcli mv x.txt test // will move x.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants