copyurl: add option to print resulting auto-filename (#5095)
Fixes #5094
This commit is contained in:
parent
97fc3b9046
commit
ce182adf46
2 changed files with 18 additions and 9 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue