Deliveries: Folder issue

Questions and answers on how to get the most out of FFAStrans
Post Reply
Conniver
Posts: 41
Joined: Thu Jan 12, 2023 8:32 am

Deliveries: Folder issue

Post by Conniver »

I'm having a problem delivering my files to the correct folder for a workflow.
I am using Deliveries: Folder to move the generated file to a specific destination (based on its original source).
I use "Y:\01_Offline\%s_recursed_path%" as the destination folder,
when I run the workflow, it puts the file in "Y:\01_Offline\", but if the file already exist in the correct location "Y:\01_Offline\folder1\folder2\
iI get the error:
Got error code 80 - The file exists, when trying
to deliver "Y:\01_Offline\folder1\folder2\250618_TRD_B003_C087.mov"
Why is it correctly detecting a file in the correct path, but delivering to the wrong path?

All settings are default for the "Deliveries: Folder" node and the previous node is an Encoder: Prores
Conniver
Posts: 41
Joined: Thu Jan 12, 2023 8:32 am

Re: Deliveries: Folder issue

Post by Conniver »

I saw this post:
"Re: %s_recursed_path% doesn't seem to get populated on resubmit"
And when I added a new file instead of trying resubmit it worked.

I guess I'll read that thread.

Conclusion, the "error" only happens on "resubmit"
User avatar
FranceBB
Posts: 285
Joined: Sat Jun 25, 2016 3:43 pm
Contact:

Re: Deliveries: Folder issue

Post by FranceBB »

If I remember correctly %s_recursed_path% is a variable populated by the watchfolder.
Effectively when you add a monitor node you're specifying a path for FFAStrans to pick up files and process them.
When that node is inserted, there's the option to recurse which allows it to look for files recursively inside the various subfolders. That is what is populating the %s_recursed_path% variable, which is why if you trigger it via the API you don't get it populated. Resubmitting is kinda like triggering from the API because you're triggering it manually instead of having the watchfolder "discover" a file, so the variable doesn't actually get populated 'cause the workflow doesn't have the base path based on which something is considered a "recursion".
Conniver
Posts: 41
Joined: Thu Jan 12, 2023 8:32 am

Re: Deliveries: Folder issue

Post by Conniver »

Is there another way to achieve the same result as using %s_recursed_path% with another variable, that works with resubmit?
I'm trying to make proxies of files in X:\01_Online\folder01\folder02\folder03\
and put them in Y:\01_Offline\folder01\folder02\folder03\
The monitor is looking in "X:01_Online\" (recursive), and I want the proxies to mirror the X drive on the Y:\01_Offline

-JI
User avatar
FranceBB
Posts: 285
Joined: Sat Jun 25, 2016 3:43 pm
Contact:

Re: Deliveries: Folder issue

Post by FranceBB »

Well, at the end of the day, you just need a way to give a basic level path to then calculate the recursed path.
In this case, we can create a new variable called %s_my_recursed_path% which we're gonna use as our reference for the watchfolder when the job isn't triggered by the actual monitor node (i.e via API or manual submit by right clicking).
Then, we're gonna use that one to recreate the folder tree.

First, create a Populate Variable node and create the variable %s_my_recursed_path%.
Set my_recursed_path equal to the path to the watchfolder you would normally have, in my case the input path of the watchfolder is

Code: Select all

M:\Media Ingest\Avisynth_Server1\Node1\x262_in
which means that in the populate variable I have

Code: Select all

%s_my_recursed_path% == $replace("%s_original_folder%", "\Media Ingest\Avisynth_Server1\Node1\x262_in", "")
When you then create a delivery node, put the path you want the files to be delivered to there and append the new recursed path variable.
In my case:

Code: Select all

M:\Media Ingest\OUTPUT Avisynth Server 1\Node1\%s_my_recursed_path%

In attachment you're gonna find a workflow with the example you're looking for.
x262_sp1.json
(16.48 KiB) Downloaded 8 times
test_recurse.PNG
test_recurse.PNG (16.43 KiB) Viewed 14463 times


To make it work with your use case, the populate variable would be:

Code: Select all

%s_my_recursed_path% == $replace("%s_original_folder%", "\01_Online", "")
and then the delivery node would be:

Code: Select all

Y:\01_Offline\%s_my_recursed_path%
Conniver
Posts: 41
Joined: Thu Jan 12, 2023 8:32 am

Re: Deliveries: Folder issue

Post by Conniver »

Perfect, thanks, I'll give this a try.
Conniver
Posts: 41
Joined: Thu Jan 12, 2023 8:32 am

Re: Deliveries: Folder issue

Post by Conniver »

That worked perfectly. Thanks.
Post Reply