1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-17 08:43:17 +00:00

Allow a custom location for the filters file

You can now add a key 'filters' in the preferences file that points to the
path of the filters file.  If this key is not found in the preferences,
the default location '.duplicacy/filters' is used.

There is a new option '-filters' for the set command that set this key in
the preferences, but you can also edit the file directly.
This commit is contained in:
Gilbert Chen
2019-11-23 15:23:26 -05:00
parent f022a6f684
commit a99f059b52
6 changed files with 41 additions and 22 deletions

View File

@@ -25,6 +25,7 @@ type Preference struct {
DoNotSavePassword bool `json:"no_save_password"`
NobackupFile string `json:"nobackup_file"`
Keys map[string]string `json:"keys"`
FiltersFile string `json:"filters"`
}
var preferencePath string