Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: [feature req.] Keep directory structure when converting. (Read 4625 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[feature req.] Keep directory structure when converting.

Hi,

It would be nice if we could keep the directory structure when converting or copying, regardless of tags (like the <leave as is> option for filenames but for the subfolder(s)), because I have a lot of albums with various artists and using %artist% and %albumartist% as root folder for the albums just create a mess.

Peter and all the plugins devs, thanks for the best player around. ^^

[feature req.] Keep directory structure when converting.

Reply #1
Use foobar's title formatting.

When copying using foobar's file operations, $directory_path(%path%)\%filename% will re-create the folder structure and keep the files' names as they are. You will have to stipulate a destination folder. There's no need to stipulate the file extension because foobar appends it automatically.

As for converting, the title formatting written above cannot be used using foobar's convert; however, you can have foobar create the converted tracks in the source folder and then use the title formatting in foobar's file operations to re-create the folder structure in a destination folder and move the files to it.


Edited for clarification.

[feature req.] Keep directory structure when converting.

Reply #2
Thanks a lot, the feature is actually there, just not really obvious.

The expression "$directory_path(%path%)\%filename%" works when converting.

[feature req.] Keep directory structure when converting.

Reply #3
It should be said that the string I gave you works under a narrow set of circumstances wherever you use it.

Many people have used $substr(%path%,N,255) where N is an integer between 1 and 255. Personally, I use a mofified version $substr(%path%,N1,N2)\%filename% (again, N1 and N2 are integers between 1 and 255). You'll find that the integer doesn't necessarily have to be literal and that there are different ways to indirectly specify one using title formatting.

You might find that %directoryname%\%filename% is all you really need to use.

It's a good idea to learn foobar's title formatting.