[feature req.] Keep directory structure when converting. |
This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.
See also: Hydrogenaudio Terms of Service.
![]() ![]() |
[feature req.] Keep directory structure when converting. |
Jul 31 2012, 20:10
Post
#1
|
|
|
Group: Members Posts: 3 Joined: 7-July 08 Member No.: 55415 |
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. ^^ |
|
|
|
Aug 1 2012, 05:23
Post
#2
|
|
|
Group: Members Posts: 328 Joined: 17-April 12 Member No.: 98921 |
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. This post has been edited by BenB: Aug 1 2012, 06:21 -------------------- This signature apparently isn't too long.
|
|
|
|
Aug 1 2012, 07:09
Post
#3
|
|
|
Group: Members Posts: 3 Joined: 7-July 08 Member No.: 55415 |
Thanks a lot, the feature is actually there, just not really obvious.
The expression "$directory_path(%path%)\%filename%" works when converting. |
|
|
|
Aug 1 2012, 14:55
Post
#4
|
|
|
Group: Members Posts: 328 Joined: 17-April 12 Member No.: 98921 |
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. This post has been edited by BenB: Aug 1 2012, 14:56 -------------------- This signature apparently isn't too long.
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 20th May 2013 - 04:51 |