Getting a folder name Root + 1 folder

Questions and answers on how to get the most out of FFAStrans
Post Reply
kimble
Posts: 23
Joined: Mon Apr 11, 2016 9:35 pm

Getting a folder name Root + 1 folder

Post 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?
emcodem
Posts: 1649
Joined: Wed Sep 19, 2018 8:11 am

Re: Getting a folder name Root + 1 folder

Post by emcodem »

emcodem, wrapping since 2009 you got the rhyme?
admin
Site Admin
Posts: 1667
Joined: Sat Feb 08, 2014 10:39 pm

Re: Getting a folder name Root + 1 folder

Post 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!
kimble
Posts: 23
Joined: Mon Apr 11, 2016 9:35 pm

Re: Getting a folder name Root + 1 folder

Post by kimble »

This is great and is just what I needed, thank you. All working. Lovely program you have created.
admin
Site Admin
Posts: 1667
Joined: Sat Feb 08, 2014 10:39 pm

Re: Getting a folder name Root + 1 folder

Post by admin »

Thanks! Glad to help :-)

-steinar
Post Reply