(name string)
| 22 | } |
| 23 | |
| 24 | func (RealFileSystem) ReadFile(name string) ([]byte, error) { |
| 25 | // This has a slight issue since gosec will not flag lines that call RealFileSystem.ReadFile. |
| 26 | // #nosec G304 intended usage. |
| 27 | return os.ReadFile(name) |
| 28 | } |
| 29 | |
| 30 | func (RealFileSystem) ReadDir(name string) ([]fs.DirEntry, error) { |
| 31 | return os.ReadDir(name) |