(_ context.Context, u *URI)
| 69 | } |
| 70 | |
| 71 | func (f *FileSystem) Size(_ context.Context, u *URI) (int64, error) { |
| 72 | info, err := os.Stat(u.Filepath()) |
| 73 | if err != nil { |
| 74 | return 0, fileErr(err) |
| 75 | } |
| 76 | return info.Size(), nil |
| 77 | } |
| 78 | |
| 79 | func (f *FileSystem) Exists(_ context.Context, u *URI) (bool, error) { |
| 80 | _, err := os.Stat(u.Filepath()) |