Added a log message when we use a local file instead of downloading one
This commit is contained in:
parent
70af28be47
commit
424ee65866
|
@ -117,6 +117,7 @@ func (d *DownloadClient) Get() (string, error) {
|
||||||
var finalPath string
|
var finalPath string
|
||||||
if url.Scheme == "file" && !d.config.CopyFile {
|
if url.Scheme == "file" && !d.config.CopyFile {
|
||||||
finalPath = url.Path
|
finalPath = url.Path
|
||||||
|
log.Printf("Using local file: %s", finalPath)
|
||||||
|
|
||||||
// Remove forward slash on absolute Windows file URLs before processing
|
// Remove forward slash on absolute Windows file URLs before processing
|
||||||
if runtime.GOOS == "windows" && len(finalPath) > 0 && finalPath[0] == '/' {
|
if runtime.GOOS == "windows" && len(finalPath) > 0 && finalPath[0] == '/' {
|
||||||
|
|
Loading…
Reference in New Issue