tstor/fs/dir.go
Antonio Navarro Perez 45f10e2f81 Refactoring and first steps to make multi OS compatible.
- Using cgofuse to be compatible with multiple OSes
- Refactor to make possible better testing
- Add a bunch of tests
- Add code coverage

Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
2020-10-18 11:39:59 +02:00

26 lines
334 B
Go

package fs
var _ File = &Dir{}
type Dir struct {
}
func (d *Dir) Size() int64 {
return 0
}
func (d *Dir) IsDir() bool {
return true
}
func (d *Dir) Close() error {
return nil
}
func (d *Dir) Read(p []byte) (n int, err error) {
return 0, nil
}
func (d *Dir) ReadAt(p []byte, off int64) (n int, err error) {
return 0, nil
}