newFsDir creates an Fs from a name This must point to a directory
(remote string)
| 141 | // |
| 142 | // This must point to a directory |
| 143 | func newFsDir(remote string) fs.Fs { |
| 144 | ctx := context.Background() |
| 145 | f, err := cache.Get(ctx, remote) |
| 146 | if err != nil { |
| 147 | err = fs.CountError(ctx, err) |
| 148 | fs.Fatalf(nil, "Failed to create file system for %q: %v", remote, err) |
| 149 | } |
| 150 | cache.Pin(f) // pin indefinitely since it was on the CLI |
| 151 | return f |
| 152 | } |
| 153 | |
| 154 | // NewFsDir creates a new Fs from the arguments |
| 155 | // |
no test coverage detected
searching dependent graphs…