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: Copying from foobar - keep structure (Read 3424 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Copying from foobar - keep structure

Howdy, still fairly new to foobar but loving it so far. I was pleased to see you can copy from it as I use jumpdrives a lot...however I was curious if there were a way to keep the folder structure when copying? As a default it seems to just copy the files "flat" and doesn't keep any existing folder structure. i.e. STEEL PANTHER > FEEL THE STEEL > 1.MP3 THRU 12.MP3 is just copied as 1.MP3 THRU 12.MP3. thx

Copying from foobar - keep structure

Reply #1
I the File Name Pattern field of the window, you can put something like:

%artist%\%album%\%filename%

which will create folders at the destination, based on your tags. The result is updated in the Preview list at the bottom, so you won't run into surprises.

Copying from foobar - keep structure

Reply #2
I the File Name Pattern field of the window, you can put something like:

%artist%\%album%\%filename%

which will create folders at the destination, based on your tags. The result is updated in the Preview list at the bottom, so you won't run into surprises.


Are you using foo_fileops?

Copying from foobar - keep structure

Reply #3
Yes.

Copying from foobar - keep structure

Reply #4
You can also re-create your directory structure independently of the files' metadata by using this (or other, more elaborate title formatting options):
Code: [Select]
$directory(%path%,2)\$directory(%path%,1)\%filename%

Note that $directory(%path%,n) re-creates the directory structure using the current names of the folders. n is the folder level counting up from the file.

Copying from foobar - keep structure

Reply #5
You can also re-create your directory structure independently of the files' metadata by using this (or other, more elaborate title formatting options):
Code: [Select]
$directory(%path%,2)\$directory(%path%,1)\%filename%

Note that $directory(%path%,n) re-creates the directory structure using the current names of the folders. n is the folder level counting up from the file.


Please excuse my ignorance as I'm brand new to foobar...where would I put your code? Also what if the file is stored <> 2 levels? I still need to try the fileops suggestion

Copying from foobar - keep structure

Reply #6
Since you mentioned using foobar to copy files, I'm curious why you asked if I was talking about the file operations component. There's no other method of copying than foo_fileops, so surely you're using it as well?

Copying from foobar - keep structure

Reply #7
Since you mentioned using foobar to copy files, I'm curious why you asked if I was talking about the file operations component. There's no other method of copying than foo_fileops, so surely you're using it as well?


you can drag and drop from a playlist (and copy and paste)

 

Copying from foobar - keep structure

Reply #8
What, you can

wait



DEAR GOD ALMIGHTY.

Copying from foobar - keep structure

Reply #9
What, you can

wait



DEAR GOD ALMIGHTY.


Yes I'm using pretty much bone stock foobar and was able to copy from the artist/album list on the left and paste into thumbdrive, but again with no folder structure. I only mention fileops cuz it was suggested above.

Copying from foobar - keep structure

Reply #10
Please excuse my ignorance as I'm brand new to foobar...where would I put your code?

You should install foo_fileops. From that point you can highlight files and right click/copy. In that window you can specify the destination folder and the file naming pattern. The latter defines how your individual files will be named and whether they will be put into their own subdirectories. You should check the '...' button on the right side to see some quick examples of how this works. You can either stick with one of the defaults or read up a bit on titleformatting to customize it further.

Copying from foobar - keep structure

Reply #11
will do, thx all