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

Skip directories with insufficient permissions instead of exiting #125

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

fpiribauer
Copy link
Contributor

When tms encounters a directory it cannot read due to insufficient permissions, it will abort with

$ tms
Error: IO Error
├╴at src/repos.rs:58:18
├╴Could not read directory "/home/piri/a_test_directory"
│
╰─▶ Permission denied (os error 13)
    ╰╴at src/repos.rs:58:18

I'm one of these rebellious people that sometimes has directories in my home tree that my user cannot read (mostly docker related bind mounts). This change will make tms skip such directories and write a warning instead.

@jrmoulton jrmoulton merged commit 5046106 into jrmoulton:main Oct 4, 2024
8 checks passed
@jrmoulton
Copy link
Owner

Thanks!

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