MCPcopy
hub / github.com/syncthing/syncthing / RestoreFolderVersions

Method RestoreFolderVersions

lib/model/model.go:97–97  ·  view source on GitHub ↗
(folder string, versions map[string]time.Time)

Source from the content-addressed store, hash-verified

95
96 GetFolderVersions(folder string) (map[string][]versioner.FileVersion, error)
97 RestoreFolderVersions(folder string, versions map[string]time.Time) (map[string]error, error)
98
99 LocalFiles(folder string, device protocol.DeviceID) (iter.Seq[protocol.FileInfo], func() error)
100 LocalFilesSequenced(folder string, device protocol.DeviceID, startSet int64) (iter.Seq[protocol.FileInfo], func() error)

Callers 3

TestVersionRestoreFunction · 0.65
TestFolderAPIErrorsFunction · 0.65

Implementers 2

modellib/model/model.go
Modellib/model/mocks/model.go

Calls

no outgoing calls

Tested by 2

TestVersionRestoreFunction · 0.52
TestFolderAPIErrorsFunction · 0.52