(_ context.Context, u *URI)
| 34 | } |
| 35 | |
| 36 | func (f *FileSystem) Put(_ context.Context, u *URI) (io.WriteCloser, error) { |
| 37 | path := u.Filepath() |
| 38 | if err := f.checkPath(path); err != nil { |
| 39 | return nil, fileErr(err) |
| 40 | } |
| 41 | w, err := pkgfs.OpenFile(path, os.O_RDWR|os.O_CREATE|os.O_TRUNC, f.perm) |
| 42 | return w, fileErr(err) |
| 43 | } |
| 44 | |
| 45 | func (f *FileSystem) PutIfNotExists(_ context.Context, u *URI, b []byte) error { |
| 46 | path := u.Filepath() |