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

Updated permissions plugin to change directory permissions too. #1324

Merged
merged 5 commits into from Feb 17, 2015
Merged

Updated permissions plugin to change directory permissions too. #1324

merged 5 commits into from Feb 17, 2015

Conversation

xsteadfastx
Copy link
Collaborator

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.

for directory in dir_list]

# Get rid of duplicates.
dir_chmod_queue = list(set(dir_chmod_queue))
Copy link
Member

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?

@sampsyo
Copy link
Member

sampsyo commented Feb 14, 2015

Looks like it's on the right track! I'd love to avoid some of the complexity in get_music_directories, though, which may be easy by reusing some existing code.

@xsteadfastx
Copy link
Collaborator Author

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:]
Copy link
Member

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?

@sampsyo
Copy link
Member

sampsyo commented Feb 17, 2015

Looking good! Could you please add a changelog entry? After that (and the tiny thing above), please go ahead and hit the merge button. 😃 ✨

xsteadfastx added a commit that referenced this pull request Feb 17, 2015
Updated permissions plugin to change directory permissions too.
@xsteadfastx xsteadfastx merged commit 1249911 into beetbox:master Feb 17, 2015
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.

None yet

2 participants