如何使用文件組件上的fileName
獲取apache駱駝來獲取多個文件。下面是我的路線:fileName檢索多個文件名
sftp://ftpserver:22/?username=blah&password=blah&stepwise=false&useList=false&ignoreFileNotFoundOrPermissionError=true&fileName=${file:onlyname.noext}.txt&delete=true&doneFileName=done")
是FTP服務器上的文件是1.txt
,2.txt
,3.txt
。我如何檢索所有這些文件而無需執行固定的fileName
如fileName=3.txt
?
添加此路由 - > sftp://myftp.com:22 /?username = test&password = test&fileName = * .txt。&delete = true&doneFileName = done - >不起作用。似乎我不能讓它工作,除非它是一個固定的字符串。當駱駝做一個目錄列表時,sftp服務器給我一個錯誤,這就是爲什麼我要給它一個固定文件名列表。 – user301693
@ user301693你是對的,我正在考慮一個特殊情況,我使用簡單的語言來創建一個複雜的動態文件名。 @Peter有正確的答案,你必須在正則表達式中使用'include'。 – cringe