Inverted the logic of FileExistsLocally as suggested by @SwampDragons as remote URLs are assumed to exist locally.

This commit is contained in:
Ali Rizvi-Santiago 2018-02-02 20:16:54 -06:00
parent c98a074f0d
commit c366a1e160
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ func FileExistsLocally(original string) bool {
// Check to see that it's got a Local way of doing things.
local, ok := d.(LocalDownloader)
if !ok {
return false
return true // XXX: Remote URLs short-circuit this logic.
}
// Figure out where we're at.