Repository navigation
Allow a path of rev: or id: for get comands - #56
blakelauer wants to merge 1 commit into
Conversation
The API allows for the download (get) command to use "path": "rev:a1c10ce0dd78" or "path": "id:a4ayc_80_OEAAAAAAAAAYa" but the validatePath function adds "/" to the path if it is not there. This results in "path": "/rev:a1c10ce0dd78" and an error.
|
Thanks @blakelauer ! Can you also update the documentation to reflect this new capability? |
|
|
|
Any update on this? I'm really missing this feature and still awaiting for implementation. |
|
Will be into the next release |
|
Thanks for the contribution! This functionality has since been implemented in #359 and is now available in dbxcli. The get command supports Dropbox references such as rev:, id:, and ns:. Since the requested functionality is now available through a newer implementation, I’m closing this PR. |
The API allows for the download (get) command to use "path": "rev:a1c10ce0dd78" or "path": "id:a4ayc_80_OEAAAAAAAAAYa" but the validatePath function adds "/" to the path if it is not there. This
results in "path": "/rev:a1c10ce0dd78" and an error.
This change stops the "/" from being added if the path begins with "rev:" or "id:". This allows the command
dbxcli get rev:a1c10ce0dd78 file.extto run and download a specific revision of a file.