1
WSO2 ESB(v 5.0.0)が提供するファイルコネクタ2を使用して、指定されたディレクトリ内のファイルを検索します。 isFileExist
関数はtrueを返しますが、同じファイルを検索すると空の応答が返されます。これはバグですか、何か不足していますか?WSO2 ESBファイルコネクタ2が空の応答を返す
これはこれは私が私があまりにも検索で.*\.txt
ファイルパターンを使用する場合、私は同じ結果を得る
To: , WSAction: mediate, SOAPAction: mediate, MessageID: urn:uuid:2391811e-5c83-4b98-a801-a60fe55b6fd0, Direction: request, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><fileExist>true</fileExist></soapenv:Body></soapenv:Envelope> {org.apache.synapse.mediators.builtin.LogMediator}
To: , WSAction: mediate, SOAPAction: mediate, MessageID: urn:uuid:2391811e-5c83-4b98-a801-a60fe55b6fd0, Direction: request, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:result xmlns:ns="http://org.wso2.esbconnectors.FileConnector"/></soapenv:Body></soapenv:Envelope> {org.apache.synapse.mediators.builtin.LogMediator}
を得る反応である私のコード
<fileconnector.isFileExist>
<source>file:///home/test/abc.OUT</source>
</fileconnector.isFileExist>
<log level="full"/>
<fileconnector.search>
<source>file:///home/test/</source>
<filePattern>abc.OUT</filePattern>
<recursiveSearch>false</recursiveSearch>
</fileconnector.search>
<log level="full"/>
です。
助けてください、TIA
すべての.txtファイルを検索する場合は、次のサンプルに従ってください。 * \ txtの filePattern> 偽 recursiveSearch> <ログレベル= "full" /> –
今、 '。* \。out'は動作しますが'。* \ .OUT'は動作しません。先端に感謝します。実際のファイル拡張子はすべて大文字ですが、小文字の拡張子が機能する理由はありますか?私は今Windows上でテストしています。これはLinuxでもうまくいくと期待しています – Shiv
。* \。outを付けると、すべての "。* \。out"と ".. * \。out"ファイルが一覧表示されます。私はUbuntuでチェックして、うまくいきます。 –