Hi Ruwan , I will look on your suggestion.
*Thank youVivekananthan Sivanayagam* *Associate Software Engineer | WSO2* *E:vivekanant...@wso2.com <e%3avivekanant...@wso2.com>* *M:+94752786138* On Mon, Feb 1, 2016 at 12:23 PM, Ruwan Abeykoon <ruw...@wso2.com> wrote: > Hi All, > Please watch out for Symlinks (empty symlink, causing NPE, and circular > references) while implementing this. > > Cheers, > Ruwan > > On Mon, Feb 1, 2016 at 11:53 AM, Malaka Silva <mal...@wso2.com> wrote: > >> +1 >> >> On Mon, Feb 1, 2016 at 11:28 AM, Vivekananthan Sivanayagam < >> vivekanant...@wso2.com> wrote: >> >>> Hi malaka, >>> >>> We can add a new parameter like "recursiveSearch" and if it is true, It >>> will search inside the sub folders, otherwise search the files inside only >>> a given folder. >>> >>> >>> >>> >>> >>> *Thank youVivekananthan Sivanayagam* >>> >>> *Associate Software Engineer | WSO2* >>> >>> *E:vivekanant...@wso2.com <e%3avivekanant...@wso2.com>* >>> *M:+94752786138 <%2B94752786138>* >>> >>> On Mon, Feb 1, 2016 at 9:17 AM, Malaka Silva <mal...@wso2.com> wrote: >>> >>>> Hi Vivekananthan, >>>> >>>> Good feature to have :) >>>> >>>> Is the behavior parameter controlled? If there is no API change we can >>>> do a minor release of file-connector V2. >>>> >>>> On Mon, Feb 1, 2016 at 9:10 AM, Vivekananthan Sivanayagam < >>>> vivekanant...@wso2.com> wrote: >>>> >>>>> Hi , >>>>> >>>>> In the existing file connector version 2 , File Search operation does >>>>> not process the files inside all the folders (Search the sub folders >>>>> for files). >>>>> >>>>> I have implemented File Search operation to process sub >>>>> folders(Recursive search). >>>>> >>>>> *Proxy* >>>>> <?xml version="1.0" encoding="UTF-8"?> >>>>> <proxy xmlns="http://ws.apache.org/ns/synapse" >>>>> name="FileConnector_Search" >>>>> transports="https,http" >>>>> statistics="disable" >>>>> trace="disable" >>>>> startOnLoad="true"> >>>>> <target> >>>>> <inSequence> >>>>> <property name="source" expression="json-eval($.source)"/> >>>>> <property name="filePattern" >>>>> expression="json-eval($.filePattern)"/> >>>>> <property name="setTimeout" >>>>> expression="json-eval($.setTimeout)"/> >>>>> <property name="setPassiveMode" >>>>> expression="json-eval($.setPassiveMode)"/> >>>>> <property name="setSoTimeout" >>>>> expression="json-eval($.setSoTimeout)"/> >>>>> <property name="setStrictHostKeyChecking" >>>>> expression="json-eval($.setStrictHostKeyChecking)"/> >>>>> <property name="setUserDirIsRoot" >>>>> expression="json-eval($.setUserDirIsRoot)"/> >>>>> <fileconnector.search> >>>>> <source>{$ctx:source}</source> >>>>> <filePattern>{$ctx:filePattern}</filePattern> >>>>> <setTimeout>{$ctx:setTimeout}</setTimeout> >>>>> <setPassiveMode>{$ctx:setPassiveMode}</setPassiveMode> >>>>> <setSoTimeout>{$ctx:setSoTimeout}</setSoTimeout> >>>>> >>>>> <setUserDirIsRoot>{$ctx:setUserDirIsRoot}</setUserDirIsRoot> >>>>> >>>>> <setStrictHostKeyChecking>{$ctx:setStrictHostKeyChecking}</setStrictHostKeyChecking> >>>>> </fileconnector.search> >>>>> <respond/> >>>>> </inSequence> >>>>> </target> >>>>> <description/> >>>>> </proxy> >>>>> >>>>> *Request* >>>>> { >>>>> "source":"file:////home/vives/Desktop/filecon/", >>>>> "filePattern":"[a-zA-Z][a-zA-Z]*[0-9].(txt|xml|jar)" >>>>> } >>>>> >>>>> *Response* >>>>> { >>>>> "result": { >>>>> "file": [ >>>>> "/home/vives/Desktop/filecon/testf2.xml", >>>>> "/home/vives/Desktop/filecon/test3/test1.jar", >>>>> "/home/vives/Desktop/filecon/test3/test1.txt", >>>>> "/home/vives/Desktop/filecon/test4/testf3.xml", >>>>> "/home/vives/Desktop/filecon/test4/test5/testf2.xml", >>>>> >>>>> "/home/vives/Desktop/filecon/test4/test5/test6/test7/test7.txt" >>>>> ] >>>>> } >>>>> } >>>>> >>>>> Any suggestion that I have to improve more in file search operation? >>>>> >>>>> >>>>> >>>>> *Thank youVivekananthan Sivanayagam* >>>>> >>>>> *Associate Software Engineer | WSO2* >>>>> >>>>> *E:vivekanant...@wso2.com <e%3avivekanant...@wso2.com>* >>>>> *M:+94752786138 <%2B94752786138>* >>>>> >>>> >>>> >>>> >>>> -- >>>> >>>> Best Regards, >>>> >>>> Malaka Silva >>>> Senior Tech Lead >>>> M: +94 777 219 791 >>>> Tel : 94 11 214 5345 >>>> Fax :94 11 2145300 >>>> Skype : malaka.sampath.silva >>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 >>>> Blog : http://mrmalakasilva.blogspot.com/ >>>> >>>> WSO2, Inc. >>>> lean . enterprise . middleware >>>> http://www.wso2.com/ >>>> http://www.wso2.com/about/team/malaka-silva/ >>>> <http://wso2.com/about/team/malaka-silva/> >>>> https://store.wso2.com/store/ >>>> >>>> Save a tree -Conserve nature & Save the world for your future. Print >>>> this email only if it is absolutely necessary. >>>> >>> >>> >> >> >> -- >> >> Best Regards, >> >> Malaka Silva >> Senior Tech Lead >> M: +94 777 219 791 >> Tel : 94 11 214 5345 >> Fax :94 11 2145300 >> Skype : malaka.sampath.silva >> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 >> Blog : http://mrmalakasilva.blogspot.com/ >> >> WSO2, Inc. >> lean . enterprise . middleware >> http://www.wso2.com/ >> http://www.wso2.com/about/team/malaka-silva/ >> <http://wso2.com/about/team/malaka-silva/> >> https://store.wso2.com/store/ >> >> Save a tree -Conserve nature & Save the world for your future. Print this >> email only if it is absolutely necessary. >> >> _______________________________________________ >> Architecture mailing list >> Architecture@wso2.org >> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >> >> > > > -- > > *Ruwan Abeykoon* > *Architect,* > *WSO2, Inc. http://wso2.com <http://wso2.com/> * > *lean.enterprise.middleware.* > > email: ruw...@wso2.com >
_______________________________________________ Architecture mailing list Architecture@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture