45f10e2f81
- 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>
26 lines
334 B
Go
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
|
|
}
|