cleaning up manager, tying it to add files
This commit is contained in:
@@ -2,8 +2,6 @@ package engine
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/rs/zerolog"
|
||||
)
|
||||
|
||||
// The watcher is responsible for not only seeing when a file changes,
|
||||
@@ -12,13 +10,6 @@ import (
|
||||
// * copying any versions and keeping them safe (even if temporary)
|
||||
// * creating the diff of the file, in both directions if necessary
|
||||
// * storing the details in the database
|
||||
func NewPatcher(logger *zerolog.Logger, KeyFolder, DownloadFolder, SyncFolder, ThumbFolder, DiffFolder string) (Patcher, error) {
|
||||
p := Patcher{
|
||||
logger,
|
||||
KeyFolder, DownloadFolder, SyncFolder, ThumbFolder, DiffFolder,
|
||||
}
|
||||
return p, nil
|
||||
}
|
||||
|
||||
// PatchFromFile takes the version of the file that was backed up
|
||||
// and applies the specified patch to it, to get the latest file. This is incase the
|
||||
|
Reference in New Issue
Block a user