mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 16:57:14 -06:00
26 lines
437 B
Go
26 lines
437 B
Go
package services
|
|
|
|
import (
|
|
"io/ioutil"
|
|
"os"
|
|
)
|
|
|
|
type IoUtilImp struct {
|
|
}
|
|
|
|
func (i IoUtilImp) Stat(path string) (os.FileInfo, error) {
|
|
return os.Stat(path)
|
|
}
|
|
|
|
func (i IoUtilImp) RemoveAll(path string) error {
|
|
return os.RemoveAll(path)
|
|
}
|
|
|
|
func (i IoUtilImp) ReadDir(path string) ([]os.FileInfo, error) {
|
|
return ioutil.ReadDir(path)
|
|
}
|
|
|
|
func (i IoUtilImp) ReadFile(filename string) ([]byte, error) {
|
|
return ioutil.ReadFile(filename)
|
|
}
|