Refactor repo

This commit is contained in:
Ben Johnson
2020-10-19 10:37:51 -06:00
parent d001df823d
commit 8fa4727358
6 changed files with 76 additions and 219 deletions

18
file_system.go Normal file
View File

@@ -0,0 +1,18 @@
package litestream
import (
"bazil.org/fuse/fs"
)
var _ fs.FS = (*FileSystem)(nil)
// FileSystem represents the file system that is mounted.
// It returns a root node that represents the root directory.
type FileSystem struct {
SourcePath string
}
// Root returns the file system root node.
func (f *FileSystem) Root() (fs.Node, error) {
return &Node{fs: f}, nil
}