GNOME Bugzilla – Bug 519897
Option to rename the current folder
Last modified: 2014-02-24 22:47:34 UTC
A nice feature would be an option to rename the current folder similar to the option to "rename files according to song information". the folder rename option would be something like "Interpret - Album" or "Interpret - Year - Album"
*** Bug 523954 has been marked as a duplicate of this bug. ***
I've written a patch to add this functionality. Instead of adding a separate option it just allows the user to specify a "/" in the pattern. Example: Artist - Album/Track - Title
Created attachment 151723 [details] [review] Patch to add folder renaming support
Expected bug if the artist or album (via example above) contains the directory separator. It might serve well to pre-normalize those in FilenamePattern.Parse.
Review of attachment 151723 [details] [review]: Hey Andy -- this patch looks good overall. A few nitpicks: ::: base/Song.cs @@ +37,3 @@ public string Filename { + if (filename == value) { + set { Unless you're going to raise an event, this if statement isn't strictly necessary. ::: base/services/DatabaseService.cs @@ +159,3 @@ + string currentdir = System.IO.Path.GetFileName (path); + if (!newdir.Equals (String.Empty)) { + string newdir = System.IO.Path.GetDirectoryName (filename); You should also ensure that newdir exists. Otherwise, you should create it.
This project is not under active development anymore. It is currently unlikely that there will be any further active development. Closing this report as WONTFIX as part of Bugzilla Housekeeping (bug 725098) to reflect reality. Please feel free to reopen this bug report in the future if anyone takes the responsibility for active development again.