如何从Pentaho Kettle读取所有文件夹和子文件夹使用SFTP获取文件步骤 [英] How to read all folders and subfolders from Pentaho Kettle Get files with SFTP step

查看:1941
本文介绍了如何从Pentaho Kettle读取所有文件夹和子文件夹使用SFTP获取文件步骤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用SFTP获取文件"步骤能够从指定的源路径(通过FTP)获取所有文件.但是它无法读取源路径中存在的任何文件夹.我尝试使用.*或*或Reg-Exp通配符.等等,但没有用.

The "Get files with SFTP" step is able to fetch all the files from the specified source path (over the FTP). But it is not able to read any of the folders exists at the source path. I tried with the Reg-Exp wild cards like .* or * or . etc, but no use.

在我的用例中,源文件总是放在一个或多个文件夹中(例如,每月特定文件夹中的每月交易文件,或多层文件夹层次结构中按年和按月的文件夹等).如果所有这些文件夹都移到了我的本地计算机上,那么我可以使用获取文件名"步骤从每个文件夹和子文件夹中读取文件.

In my use case, the source files always will come in one or multiple folders (like monthly transaction files in month specific folders, or year-wise and month-wise folders in multi-level folder hierarchy etc). If all these folders moved to my local machine, then I can use the "Get File Names" step to read the files from each folder and sub-folders.

有人可以指导我如何通过使用SFTP获取文件"步骤从源路径复制/移动所有文件和文件夹吗?

Can anybody guide me how copy/move all the files and foldes from the source-path from this "Get files with SFTP" step?

推荐答案

尝试使用VFS.我不确定它是否有效,但是PDI中一个鲜为人知的神奇技巧是,在引用文件的任何地方都可以使用VFS URL,并且VFS在许多其他事情中都支持SFTP.

Try VFS. I don't know for sure if it works but a little known amazing trick in PDI is that anywhere a file is referenced you can use a VFS URL and VFS Supports SFTP amongst many many other things.

http://infocenter.pentaho.com/help /index.jsp?topic=%2Fpdi_user_guide%2Fconcept_vfs_sftp_config.html

这篇关于如何从Pentaho Kettle读取所有文件夹和子文件夹使用SFTP获取文件步骤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆