CREATE DIRECTORY IF


#1

Hi

One more action i'de like to set

If files are MP3 then transfer them to "X:\Shared Music\MP3"
or
If files are FLAC then transfer them to"X:\Shared Music\FLAC"
or
If files are DSD then transfer them to"X:\Shared Music\DSD"

thank you

Martin


#2

I am not sure about those dsd files - but I think you can use the information variable %_tag_read%.
An action of the type "Format value" for _Filename:
Format string: X:\Shared Music$replace(%_tag_read%,ID3V2.3,MP3,ID3V1,MP3,FLAC,FLAC,DSD,DSD)\%_filename%

As I said: check the dsd files and see what it says for %_tag_read% and then enter that for the first DSD in the replace-expression.


#3

ok look what i have

DSD is ID3V2.3


#4

drat!

Then we have to split the filename like:
An action of the type "Format value" for _Filename:
Format string: X:\Shared Music$regexp(%_filename_ext%,..(.),$1)\%_filename%

The disadvantage of that solution is that you also get separate folders for MP4 files and all other types that manifest in the extension.


#5

Like you said , it creates many folders

dsf
flac
Heaven And Hell (DSD)
Kodama
mp3
Paranoid (DSD)
Wake Pig

No Artist folder, only albums and extensions


#6

As user 'ohrenkino' already has worked out, ...
do apply an action "Format value" on the pseudo tagfield _FILENAME ...
with the formatstring ...

$if($eql(%_extension%,'DSD'),'X:\Shared Music\DSD\'%_filename_ext%,%_path%)

You may create an action group to collect other filename extensions into one action, to move only dedicated files by one call of the action group, e. g. ...

$if($eql(%_extension%,'DSD'),'X:\Shared Music\DSD\'%_filename_ext%,%_path%)

$if($eql(%_extension%,'DSF'),'X:\Shared Music

<!--fontc-->DSF<!--fontc-->'%_filename_ext%,%_path%)
$if($eql(%_extension%,'MP3'),'X:\Shared Music
<!--fontc-->MP3<!--fontc-->'%_filename_ext%,%_path%)
$if($eql(%_extension%,'FLAC'),'X:\Shared Music
<!--fontc-->FLAC<!--fontc-->'%_filename_ext%,%_path%)

... or just simplified for all file extensions ...
Format value:

_FILENAME <== 'X:\Shared Music\'$upper(%_extension%)'\'%_filename_ext%

DD.20180107.1715.CET, DD.20180107.1843.CET


#7

Same thing , it creates too many folders

DSD, FLAC MP3, and creates album folders.

DSD FLAC AND MP3 are empty and album folders contains songs

What i want to create is

X\Shared Music\DSD\Journey\Greatest Hits (DSD)\Track - title
X\Shared Music\MP3\3\Wake Pig\Track - title
X\Shared Music\FLAC\Alcest\Kodama\Track - title

Martin


#8

OK, but you did not say so in the first post.
I think we are all a little too complicated as the extension already exists - what about

Format value for %_filename%
Format string: X:\Shared Music\%_extension%\%albumartist%$num(%track%,2) - %title%
(I wonder where the album is gone ... and I wonder where the "3" for the MP3 folder comes from)


#9

3 is the name of the band

CJOINT

Kodama, Wake Pig and Greatest Hits are Album Folders


#10

Ah, ok.
then I have to append my suggestion for a
format string: X:\Shared Music\%_extension%\%albumartist%\%album%$num(%track%,2) - %title%


#11

PERFECT, but one more thing

It creates folder like

dsf
mp3
flac

Can they be like that (capitalize)

DSD (if not DSF)
MP3
FLAC

thank you

Martin


#12

format string: X:\Shared Music$upper(%_extension%)\%albumartist%\%album%$num(%track%,2) - %title%


#13

Perfect

thank you again

Martin


#14

The given actions can only do what they should do, which is to apply the programmatic given file extensions.
It seems that you did something wrong.

DD.20180107.1819.CET


#15

What ohrenkino writes in his last quote was perfect for me

It is working like i want now

Sorry

Martin