(_ context.Context, u *URI)
| 77 | } |
| 78 | |
| 79 | func (f *FileSystem) Exists(_ context.Context, u *URI) (bool, error) { |
| 80 | _, err := os.Stat(u.Filepath()) |
| 81 | if os.IsNotExist(err) { |
| 82 | return false, nil |
| 83 | } |
| 84 | if err != nil { |
| 85 | return false, fileErr(err) |
| 86 | } |
| 87 | return true, nil |
| 88 | } |
| 89 | |
| 90 | func (f *FileSystem) List(ctx context.Context, u *URI) ([]Info, error) { |
| 91 | entries, err := os.ReadDir(u.Filepath()) |