rmapi icon indicating copy to clipboard operation
rmapi copied to clipboard

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

Open Aariq opened this issue 4 years ago • 5 comments

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.

Aariq avatar Mar 03 '21 18:03 Aariq

-o outputdir

try rmapi mget -h

ddvk avatar Mar 04 '21 09:03 ddvk

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 avatar Mar 05 '21 16:03 Aariq

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.

Aariq avatar Mar 05 '21 16:03 Aariq

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

ddvk avatar Mar 06 '21 07:03 ddvk

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?

ddvk avatar Mar 06 '21 17:03 ddvk