Skip to main content

Topic: [feature req.] Keep directory structure when converting. (Read 2668 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • kyis
  • [*]
[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. ^^

  • BenB
  • [*][*][*][*][*]
[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.
  • Last Edit: 01 August, 2012, 01:21:37 AM by BenB

  • kyis
  • [*]
[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.

  • BenB
  • [*][*][*][*][*]
[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.
  • Last Edit: 01 August, 2012, 09:56:41 AM by BenB