Exists implements Loader.Exists() on top of an http.FileSystem by trying to open the file.
(name string)
| 27 | |
| 28 | // Exists implements Loader.Exists() on top of an http.FileSystem by trying to open the file. |
| 29 | func (l *httpFileSystemLoader) Exists(name string) bool { |
| 30 | if f, err := l.Open(name); err == nil { |
| 31 | f.Close() |
| 32 | return true |
| 33 | } |
| 34 | return false |
| 35 | } |