8 // FileGetter is a Getter implementation that will download a module from
10 type FileGetter struct {
11 // Copy, if set to true, will copy data instead of using a symlink
15 func (g *FileGetter) ClientMode(u *url.URL) (ClientMode, error) {
21 fi, err := os.Stat(path)
26 // Check if the source is a directory.
28 return ClientModeDir, nil
31 return ClientModeFile, nil