cnbeining / onedrivecmd

A command line client for Onedrive.
https://www.cnbeining.com/
GNU Affero General Public License v3.0
378 stars 78 forks source link

The get command cannot write to another folder in windows 10 #23

Closed aurotripathy closed 5 years ago

aurotripathy commented 6 years ago

In the example below the "input" folder exists and I want the downloaded file to be written into that folder.

(py36) C:\Users\autrip\Documents\charting\charting>onedrivecmd get "od:/Data Center Weekly Update.xlsx" input
Downloading |################################| 100.0% - 0s
[?25hWARNING:root:File input do not exist!
cnbeining commented 6 years ago

I would consider that as a feature request.

However I would rather keep the argument handling in this way so the utility can download multiple remote files in one command.

在 2018年4月10日,下午9:09,aurotripathy notifications@github.com 写道:

In the example below the "input" folder exists and I want the downloaded file to be written into that folder.

(py36) C:\Users\autrip\Documents\charting\charting>onedrivecmd get "od:/Data Center Weekly Update.xlsx" input �[KDownloading |################################| 100.0% - 0s �[?25hWARNING:root:File input do not exist! — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cnbeining/onedrivecmd/issues/23, or mute the thread https://github.com/notifications/unsubscribe-auth/ABfRgrmj5JJ487OQuPnHMHQkQ4DJqqpNks5tnVfHgaJpZM4TPOH2.

aurotripathy commented 6 years ago

ok, thanks. I was following the command syntax which indicates i can write to the /tmp folder

onedrivecmd [OPTIONS] get od:/foo/file.txt /tmp/

DictXiong commented 5 years ago

I've fixed this problem and a PR is coming soon.