-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Permissions plugin: change permissions of folders #1308
Comments
yeah cool idea. i dont have time today but will look into that in the next days :) |
im kind of stuck in some design descisions. i cant find a fitting listener for that case. i could just chmod the album directory after they get imported. but that would miss the artist directory. mh. i will see |
i could do some stuff with os.path.split... but i would just always get the directory the tracks are in... not the artist folder for example. this was my first try to get a list of directories where i should run chmod on.... but the main problem is with my differential_path_list: if album and artist have the same name... its not working.
|
Perhaps just chmod all of the ancestors of the file, recursively, stopping when the change is disallowed? There's a utility in The pruning logic there is another example of "bubbling up" until we hit the top library directory. |
thats what i was thinking. i wrote my own "walker" for the directories. i just want to change permissions on directories in the library. what do you think? |
Would be great if the permissions plugin can be used to change the permissions of the created folders as well.
The text was updated successfully, but these errors were encountered: