IsShortcutFile reports whether path is an Internet Shortcut file, which artifact commands read as a link. Like Windows, it goes by the .url extension, in any case.
(path string)
| 48 | // artifact commands read as a link. Like Windows, it goes by the .url |
| 49 | // extension, in any case. |
| 50 | func IsShortcutFile(path string) bool { |
| 51 | return strings.EqualFold(filepath.Ext(path), ".url") |
| 52 | } |
| 53 | |
| 54 | // IsHTMLFile reports whether path is an HTML file, which create reads as an |
| 55 | // HTML document. It goes by the .html and .htm extensions, in any case. |
no outgoing calls