Improve error handling and setting of xattr and file flags

- Improve error handling of file flags and xattrs. You now get warnings
- file flags on *BSD/Darwin use a mask and combine with the user/superuser
mask to prevent spurious warnings. The mask is not yet implemented as
a preference
- error handling/report for reading special files
- bump to go 1.20 for errors.Join
This commit is contained in:
2023-10-05 21:43:02 -05:00
parent 7df1ba5d82
commit 42ee20a9e1
9 changed files with 382 additions and 284 deletions

4
go.mod
View File

@@ -1,6 +1,6 @@
module github.com/gilbertchen/duplicacy
go 1.19
go 1.20
require (
cloud.google.com/go v0.38.0
@@ -22,7 +22,7 @@ require (
github.com/minio/highwayhash v1.0.2
github.com/ncw/swift/v2 v2.0.1
github.com/pkg/sftp v1.11.0
github.com/pkg/xattr v0.4.1
github.com/pkg/xattr v0.4.9
github.com/vmihailenco/msgpack v4.0.4+incompatible
golang.org/x/crypto v0.12.0
golang.org/x/net v0.10.0