Remove runtime OS check for excluding by attributes

This commit is contained in:
Gilbert Chen
2020-09-25 22:37:54 -04:00
parent 04a858b555
commit ace1ba5848
8 changed files with 44 additions and 38 deletions

View File

@@ -0,0 +1,14 @@
// Copyright (c) Acrosync LLC. All rights reserved.
// Free for personal use and commercial trial
// Commercial use requires per-user licenses available from https://duplicacy.com
package duplicacy
import (
"strings"
)
func excludedByAttribute(attirbutes map[string][]byte) bool {
value, ok := attirbutes["com.apple.metadata:com_apple_backup_excludeItem"]
return ok && strings.Contains(string(value), "com.apple.backupd")
}