Author Topic: 'Preserve folders' sync option only preserving 2 parent folders  (Read 5790 times)

redwing

  • Guest
Another issue is it's impossible to use functions (including regex) for path since all backslashes get stripped from the code. What this means is that there's no way to customize preserved folder structure using template option and you must use the current preserve option.

@Steven;

If you support filename character mapping settings for the sync settings just like file organizer, then I can provide regex templates that would allow users to customize the path string consistently across all drives.
Last Edit: May 18, 2019, 01:49:04 AM by redwing


chrisjj

  • Full Member
  • ***
  • Posts: 228
Here's some observations of this setting with v3.3.7075.

I never tried this setting, and after testing it with various source configurations I must say it leaves a lot to be desired.

The way it currently works is it compares all source track paths on each drive and preserves a path that starts with a unique string for those tracks. So if you sync just one track, it only preserves the last folder. And if the path of source tracks are starting with the same string (D:\Music\Pop), that part gets ignored and only unique path structure (A\Adele\19\) and filename get preserved.

The problem is because the comparison is done per drive the final folder structure in target device can be completely messed up if tracks are sourced from multiple drives with various folder structure. So you end up having "Pop" folder, "D" folder, "Oasis" folder on the same folder level and what's worse is it can be completely different next time depending on which songs are selected and what they have in common in their path.

Another issue is it's impossible to use functions (including regex) for path since all backslashes get stripped from the code. What this means is that there's no way to customize preserved folder structure using template option and you must use the current preserve option.

Maybe this setting can be more useful if it applies the same path rule for all drives. And not just one time, continuously in order to maintain a consistent folder structure on the device. To achieve that, optionally let users choose which folder level the path should start from.

Does this affect that actual filenames, or just the preview? ( https://getmusicbee.com/forum/index.php?topic=23641.msg150572#msg150572 )