siac renter download command should download files with the original name when target is a directory
Currently when issuing a siac renter download
command and specify a directory as the download target it errors out with the message /some/path is a directory
. Instead it should create the file which the user is trying to download in that directory.
Example:
siac renter download Documents/somefile.dat .
Should put a file named somefile.dat
in the user's present working directory.
The same applies to the renter createbackup command. When the user wanted to create a backup in their home directory he/she instinctively types siac renter createbackup ~
, which will then print /home/someuser is a directory
. A logical name for a backup would be renter_backup_2019-04-05.bak
, or something like that.