adding path checks to manager
This commit is contained in:
		@@ -12,10 +12,10 @@ 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) {
 | 
			
		||||
func NewPatcher(logger *zerolog.Logger, KeyFolder, DownloadFolder, SyncFolder, ThumbFolder, DiffFolder string) (Patcher, error) {
 | 
			
		||||
	p := Patcher{
 | 
			
		||||
		logger,
 | 
			
		||||
		KEYFOLDER, DOWNLOADFOLDER, SYNCFOLDER, THUMBFOLDER, DIFFFOLDER,
 | 
			
		||||
		KeyFolder, DownloadFolder, SyncFolder, ThumbFolder, DiffFolder,
 | 
			
		||||
	}
 | 
			
		||||
	return p, nil
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user