You are viewing limited content. For full access, please sign in.

Question

Question

How can I search and find content of a long path within specific folder level?

asked on May 2, 2015

Hi

 

I have folder path that has about 8 level sub folders.   Names of first three folder levels are static and the rest of sub folders name within path varies.   I like to find the sixth level sub folder on the folder path and find its content.  what would be the expression to use within LF client advanced search to go to specific folder level?

 

 

0 0

Answer

SELECTED ANSWER
replied on May 6, 2015

Are you asking how to find siblings of the parent folder of the starting entry? In that case, just use Find Entries and set it to find entries in the same folder as the %(Entry Path).

0 0

Replies

replied on May 6, 2015

I could use some help from LF support on this

 

I am using the following expression to get the folder from starting entry path.   This expression returns all the folders within desired folder level.   I need the search to return the folder that is specifically within the Starting entry path.

{LF:Name="*", Type="F"} & {LF:LOOKIN="%(Entry Path#<\.*\\.*\\.*\\\d{2}\\\d+\\>#)", SUBFOLDERS=0}   

Thanks

0 0
replied on May 6, 2015

Hi Miruna

Let me give you an example:

 

I am backfiling large volume of files and typical file folder look like and will be moved to this location by import agent:

ClientName\IA\Dist\32-98\91\9116444\Admin\Mutsaerts - Scanned Documents, August 6, 2013\Invoices Previously Reviewed\AME Group  Consulting Professional Engineers\Documentfilename.

I just need to capture seventh folder in the single path.   We have 12 folder names that I will match with these value and move files into and any other folder name or document  will go to another folder location.

Above expression returns all the folders that are within ClientName\IA\Dist\32-98\91\9116444. 

From example above I just want to return the value Admin from entry's full path.

 

 

 

0 0
replied on May 6, 2015

Finally I got it working.  I used token to capture the specific folder name.   It seems token capture looks explicitly into into  path but Search is not looking explicitly into entry path rather its finding anything within the path (defined with the same expression).   Anyway, took a while to figure this out. 

 

Thanks for your reply, if you have any other approach, let me know.

 

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.