Page 1 of 1

Getting a folder name Root + 1 folder

Posted: Wed Oct 04, 2023 6:39 pm
by kimble
Hi there,

I can see there is a way to get the name of a folder N steps backwards but if you don't know how deep a folder structure can potentially be then it's hard to predict "N". Can anyone think of a way to grab the folder name of a second level folder?

Re: Getting a folder name Root + 1 folder

Posted: Thu Oct 05, 2023 8:10 am
by emcodem

Re: Getting a folder name Root + 1 folder

Posted: Thu Oct 05, 2023 7:01 pm
by admin
Hi kimble,

Starting from 1.3 FFAStrans supports the notation %s_recursed_path~-n% for getting the recursed path from the right side.
So if %s_original_path% = \\server\share\media\card1\clips\MXF and you're monitoring \\server\share
%s_recursed_path~-2% = card1

Hope this helps.

-steinar

EDIT: It's "path from the left side" of course!

Re: Getting a folder name Root + 1 folder

Posted: Fri Oct 06, 2023 11:31 am
by kimble
This is great and is just what I needed, thank you. All working. Lovely program you have created.

Re: Getting a folder name Root + 1 folder

Posted: Sat Oct 07, 2023 9:09 am
by admin
Thanks! Glad to help :-)

-steinar