(ctx context.Context, path string)
| 118 | } |
| 119 | |
| 120 | func IsFile(ctx context.Context, path string) (bool, error) { |
| 121 | fs := FS(ctx) |
| 122 | return afero.Exists(fs, path) |
| 123 | } |
| 124 | |
| 125 | func HasSuffix(str string, extensions []string) bool { |
| 126 | for _, e := range extensions { |