mirror of
https://github.com/jkl1337/duplicacy.git
synced 2026-01-12 00:24:53 -06:00
Refactor variable names and revert shadow copy path computation
This commit is contained in:
@@ -68,8 +68,8 @@ func CreateSnapshotFromDirectory(id string, top string) (snapshot *Snapshot, ski
|
||||
|
||||
var patterns []string
|
||||
|
||||
duplicacyDirectory := GetDotDuplicacyPathName(top)
|
||||
patternFile, err := ioutil.ReadFile(path.Join(duplicacyDirectory, "filters"))
|
||||
preferencePath := GetDuplicacyPreferencePath(top)
|
||||
patternFile, err := ioutil.ReadFile(path.Join(preferencePath, "filters"))
|
||||
if err == nil {
|
||||
for _, pattern := range strings.Split(string(patternFile), "\n") {
|
||||
pattern = strings.TrimSpace(pattern)
|
||||
|
||||
Reference in New Issue
Block a user