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
Updated permissions plugin to change directory permissions too. #1324
Conversation
for directory in dir_list] | ||
|
||
# Get rid of duplicates. | ||
dir_chmod_queue = list(set(dir_chmod_queue)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any particular reason not to just use a set
to begin with?
Looks like it's on the right track! I'd love to avoid some of the complexity in |
you know what? thank you so much for your comments. im still a beginner and this helps me alot. i will try my best :) |
""" | ||
return [ancestor | ||
for ancestor in ancestry(item) | ||
if library in ancestor][1:] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about ancestor.startswith(library)
for specificity?
Looking good! Could you please add a changelog entry? After that (and the tiny thing above), please go ahead and hit the merge button. 😃 ✨ |
…plicates in a list
…and use the ancestors function instead of writing something new.
Updated permissions plugin to change directory permissions too.
tried to implement feature request #1308. whats your opinion about it? i added my own way to find the folders to run chmod on. like this it only changes artist and album folders in the beets directory and not on full ancestors.