mirror of
https://github.com/rclone/rclone.git
synced 2025-08-15 08:12:45 +02:00
copyurl: add option to print resulting auto-filename (#5095)
Fixes #5094
This commit is contained in:
@ -1635,6 +1635,7 @@ func copyURLFn(ctx context.Context, dstFileName string, url string, dstFileNameF
|
||||
if dstFileName == "." || dstFileName == "/" {
|
||||
return errors.Errorf("CopyURL failed: file name wasn't found in url")
|
||||
}
|
||||
fs.Debugf(dstFileName, "File name found in url")
|
||||
}
|
||||
return fn(ctx, dstFileName, resp.Body, resp.ContentLength, modTime)
|
||||
}
|
||||
|
Reference in New Issue
Block a user