Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: Get File Names step alternative

  1. #1
    Join Date
    Apr 2014
    Posts
    6

    Question Get File Names step alternative

    Hi,

    I'm looking for the best alternative for the "Get File Names" step. I'd like this alternative to accept a directory path parameter and a file regex parameter as an input and produce a list of file names and/or full file paths that match the input (similar to the "filename" and "short_filename" columns produced by the Get File Names step).

    Why I need the alternative? I'm stuck with PDI v6.0, which I cannot upgrade right now for various reasons and since there's a bug in the Get File Names step (http://jira.pentaho.com/browse/PDI-14800), I cannot use it.

    Thanks.

  2. #2
    Join Date
    Aug 2016
    Posts
    290

    Default

    Should be not too complicated making it with a java step (User Defined Java Class).

  3. #3
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    A workaround is to use Get-Variables and make Get-File-Names read its config values from fields.
    So long, and thanks for all the fish.

  4. #4
    Join Date
    Apr 2014
    Posts
    6

    Default

    Quote Originally Posted by marabu View Post
    A workaround is to use Get-Variables and make Get-File-Names read its config values from fields.
    I can't believe I didn't think about this one. Excellent solution, thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.