diff --git a/cmd/restic/cmd_mount.go b/cmd/restic/cmd_mount.go index d685af98a..290ae4056 100644 --- a/cmd/restic/cmd_mount.go +++ b/cmd/restic/cmd_mount.go @@ -6,7 +6,7 @@ import ( "fmt" "os" - "github.com/restic/restic/cmd/restic/fuse" + "github.com/restic/restic/fuse" systemFuse "bazil.org/fuse" "bazil.org/fuse/fs" diff --git a/cmd/restic/fuse/dir.go b/fuse/dir.go similarity index 100% rename from cmd/restic/fuse/dir.go rename to fuse/dir.go diff --git a/cmd/restic/fuse/file.go b/fuse/file.go similarity index 100% rename from cmd/restic/fuse/file.go rename to fuse/file.go diff --git a/cmd/restic/fuse/file_test.go b/fuse/file_test.go similarity index 100% rename from cmd/restic/fuse/file_test.go rename to fuse/file_test.go diff --git a/cmd/restic/fuse/fuse.go b/fuse/fuse.go similarity index 100% rename from cmd/restic/fuse/fuse.go rename to fuse/fuse.go diff --git a/cmd/restic/fuse/link.go b/fuse/link.go similarity index 100% rename from cmd/restic/fuse/link.go rename to fuse/link.go diff --git a/cmd/restic/fuse/snapshot.go b/fuse/snapshot.go similarity index 99% rename from cmd/restic/fuse/snapshot.go rename to fuse/snapshot.go index f288615d1..6f82998c4 100644 --- a/cmd/restic/fuse/snapshot.go +++ b/fuse/snapshot.go @@ -60,6 +60,7 @@ func (sn *SnapshotsDir) updateCache(ctx context.Context) error { } return nil } + func (sn *SnapshotsDir) get(name string) (snapshot SnapshotWithId, ok bool) { sn.RLock() snapshot, ok = sn.knownSnapshots[name]