Convert - Move music with Lame

Hi,

I am trying to create a task, to convert - move music that I have downloaded through transmission.

Now I am testing only by copying the files that are in the different folders that I have, but I cannot get the source directories and only copy the files and not create the directories.

I have the task created as follows:

moveMusic:
  filesystem
    path: "/download/complete"
    recursive: yes
    retrieve:
      - files
      - dirs
    regexp: '.*\.(mp3)$'
  accept_all: yes
  exec:
    auto_escape: yes
    on_output:
      for_entries: |
        cp -r "{{localtion}}" "/storage/{{filename}}"
        #code disable with the lame instruction 
        #lame --out-dir "/storage/{{filename}}" -b 160 "{{filename}}"

And I don’t see where the problem may be

likely because retrieve contains dirs

Yes, but is possible to in the for_entries create the same folders or how discover the folder that the file copy or convert that use in {{location}}, {{url}}, {{filename}}, etc…

Thanks

I ama Tidal user. Can it move Tidal to USB? I want to transfer some Tidal audios to my USB for using on other devices.