func (m *Mocket) IsDir(f os.FileInfo) bool {
	c := m.Called()
	return c.Bool(0)
}
IsDir is use to check if path is directory during test
package file
import (
	"bytes"
	"io"
	"io/ioutil"
	"net/http"
	"os"
	"github.com/stretchr/testify/mock"
)
type Mocket struct {
	mock.Mock
}
func (m *Mocket) ReadFile(filename string) ([]byte, error) {
	c := m.Called()
	return c.Get(0).([]byte), c.Error(1)
}
func (m *Mocket) WriteFile(filename string, data []byte, perm os.FileMode) error {
	c := m.Called()
	return c.Error(0)
}
func (m *Mocket) Stat(name string) (os.FileInfo, error) {
	c := m.Called()
	var x os.FileInfo
	return x, c.Error(1)
}
func (m *Mocket) IsNotExist(err error) bool {
	c := m.Called()
	return c.Bool(0)
}
func (m *Mocket) MkdirAll(path string, perm os.FileMode) error {
	c := m.Called()
	return c.Error(0)
}
func (m *Mocket) OpenFile(name string, flag int, perm os.FileMode) (*os.File, error) {
	c := m.Called()
	return &os.File{}, c.Error(1)
}
func (m *Mocket) Close(f *os.File) error {
	c := m.Called()
	return c.Error(0)
}
func (m *Mocket) Write(f *os.File, b []byte) (n int, err error) {
	c := m.Called()
	return c.Int(0), c.Error(1)
}