Skip to content

how to only upload an dir (out of onedrive root dir) to remote with the same dir name ? #1865

Answered by abraunegg
shnwang asked this question in Q&A
Discussion options

You must be logged in to vote

@miroskv

My onedrive root dir is ~/OneDrive ,and now I have a dir ~/dir1 with some files in it . I want to just upload the dir to remote with the same dir name . I run like this :onedrive --syncdir ~/dir1 --synchronize --upload-only --no-remote-delete but all the files be upload to remote root dir , this is not what I desire. My goal is to upload ~/dir1 ro remote ~/dir with files. So could onedrive assign an option that dir name will be upload to ? local dirA -> remote dirB

You cant do this.

You can only upload data that is within in your configured 'sync_dir' - this is how the API works.

You must either:

  1. Move your ~/dir1 to ~/OneDrive/dir1

or

  1. Symbolically link ~/OneDrive/dir1 -> ~/dir1

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@shnwang
Comment options

@shnwang
Comment options

@abraunegg
Comment options

@shnwang
Comment options

Answer selected by abraunegg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants