Refactor repo
This commit is contained in:
18
file_system.go
Normal file
18
file_system.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user