Commit 5a03dfd7 authored by Matthew Sevey's avatar Matthew Sevey

siac: trim leading slash off of siapath provided in download

parent b2b873e0
Pipeline #48435257 passed with stages
in 28 minutes and 34 seconds
......@@ -704,7 +704,7 @@ func renterfilesdeletecmd(path string) {
// Downloads a path from the Sia network to the local specified destination.
func renterfilesdownloadcmd(path, destination string) {
destination = abs(destination)
path = strings.TrimPrefix(path, "/")
// Queue the download. An error will be returned if the queueing failed, but
// the call will return before the download has completed. The call is made
// as an async call.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment