Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better inform users of permissions errors by tmutil Error (-50), fixes #14 #19

Merged
merged 1 commit into from
Oct 8, 2023

Conversation

sfleiter
Copy link
Contributor

@sfleiter sfleiter commented Oct 3, 2023

No description provided.

@@ -101,6 +102,19 @@ func checkPath(path string, verbose int) (bool, error) {
return !strings.Contains(s, "[Excluded]"), nil
}

func printTmutilError(path string, out bytes.Buffer, outErr bytes.Buffer) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I manually verified write permissions are the one needed for files and directories for adding or removing exclusions, they are not needed for checking

@tg44
Copy link
Owner

tg44 commented Oct 3, 2023

undefined: strings.CutPrefix do you want to upgrade things from go 1.17 to some newer version too?

@sfleiter
Copy link
Contributor Author

sfleiter commented Oct 4, 2023

undefined: strings.CutPrefix do you want to upgrade things from go 1.17 to some newer version too?

See #21

@tg44 tg44 force-pushed the tmutil-error-50 branch from 1816749 to fcf9dee Compare October 8, 2023 20:25
@tg44 tg44 merged commit c59cb8f into tg44:main Oct 8, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants