juruen / rmapi

Go app that allows you to access your reMarkable tablet files through the Cloud API
GNU Affero General Public License v3.0
976 stars 106 forks source link

How to specify download directory for mget, geta, etc. #156

Open Aariq opened 3 years ago

Aariq commented 3 years ago

Is there a way to specify where mget downloads files to? I tried mget . ~/Downloads and the file was downloaded to my home directory, not Downloads.

ddvk commented 3 years ago

-o outputdir

try rmapi mget -h

Aariq commented 3 years ago

Do you mean rmapi mget path/to/file/on/RM -o ~/Downloads or rmapi mget path/to/file/on/RM -h ~/Downloads? Neither of those seem to save a file anywhere, although I don't get any errors from rmapi. Is there any documentation about what options are available for mget and geta? Sorry, I'm a beginner linux user.

Aariq commented 3 years ago

Ok, I think I got it. It's mget -o outputdir path/on/RM. But it still has some unexpected behaviors. When I do mget -o ~/Downloads mydir/myfile it creates a folder called "~" in my home directory, then "Downloads/mydir/myfile.zip" under that. I expected it to create myfile.zip in ~/Downloads.

ddvk commented 3 years ago

could be a bug in the option parsing then, i have to check it

ddvk commented 3 years ago

Ok, I think I got it. It's mget -o outputdir path/on/RM. But it still has some unexpected behaviors. When I do mget -o ~/Downloads mydir/myfile it creates a folder called "~" in my home directory, then "Downloads/mydir/myfile.zip" under that. I expected it to create myfile.zip in ~/Downloads.

it works on my machine, Linux/zsh,bash

what OS and shell are you using?