# Parsing file Path in multifolder flex connector

Hi, I have developed the multiple folder flex connector where I use sdkfilereader parser.

In agent.properties file I have enabled the following

agents[0].foldertable[0].extractfieldnames=filePath

agents[0].foldertable[0].extractregex=(\\ \\ \d \.\d \.\d \.\d \\ \w \\ \w \-\w \.\w )

agents[0].foldertable[0].extractsource=File Path

agents[0].foldertable[0].usefieldextractor=true

But I am not getting the File Path to  the ESM

I have also tried this way

agents[0].foldertable[0].extractregex=(.*)

Also not working

My files are located at \\11.11.11.11\FolderName\

File names are like this MSGTRKMS2016051013-1.LOG

I have tested both Regex and they are fine.

It is interesting that when I had only one folder the regex version agents[0].foldertable[0].extractregex=(.*) was working.

When I added 8 more folders it stopped working and I do not see any errors in the log files.

I have checked it and I have proper configuration for all all 8 folders.

Could you please let me know what could be wrong here?

P.S.

In sdkfilereader file I have these parameters and maybe they somehow make this problem?

delimiter=,

text.qualifier="

trim.tokens=true

contains.empty.tokens=true

start.at.line=2

Thanks

#### Tags:

I have just figured it out.

I have removed from sdkfilereader file the following property trim.tokens=true and used this config in agents property file

agents[0].foldertable[0].extractfieldnames=filePath

agents[0].foldertable[0].extractregex=(.*)

agents[0].foldertable[0].extractsource=File Path

agents[0].foldertable[0].usefieldextractor=true

and now it works.

Really strange, why trim.tokens=true option brakes everything.