SourceIsFile returns true if go-getter thinks the src looks like a file path. Ensuring that the src is not a git url is important because go-getter can think that a git url is a file path url.
(src string)
| 33 | // Ensuring that the src is not a git url is important because go-getter can think |
| 34 | // that a git url is a file path url. |
| 35 | func SourceIsFile(src string) bool { |
| 36 | return detector.FileDetector(src) |
| 37 | } |
| 38 | |
| 39 | // SourceIsGit returns true if go-getter thinks the src looks like a git url |
| 40 | func SourceIsGit(src string) bool { |
no outgoing calls