Uploaded image for project: 'Pentaho Data Integration - Kettle'
  1. Pentaho Data Integration - Kettle
  2. PDI-1860

Request for Feature release. Recursive application of 'Get File Names' logic.

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Severity: Medium
    • Resolution: Fixed
    • Affects Version/s: 3.1.0 GA
    • Fix Version/s: Not Planned
    • Component/s: None
    • Labels:
      None
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.

      Description

      My team (Two Heads, former Partner) needed to recursively read File Names from a root folder. We applied a 'Recursive' CheckBox on 'Get File Names' filter tab, and injected its value into

      (org.pentaho.di.trans.steps.getfilenames.GetFileNamesMeta).buildSubdirsFlagsArray Method (See code reported below)

      to obtain the desired behaviour. The hack is still in test phase, but it seems working fine. Is there any well-known 'CON' to the modify done?

      CODE:
      private boolean[] buildSubdirsFlagsArray()
      {
      boolean[] flags = new boolean[fileName.length];
      for (int i = 0; i < fileName.length; i++)

      { //RECURSIVE HACK - Two Heads HACK //flags[i] = false; flags[i] = recursive; }

      return flags;
      }

      On an additional Note, the internalization of the Recursive label on the GUI need some translation. The current status is:

      messages_en_US: GetFileNamesDialog.Recursive.Label=Apply recursively
      messages_it_IT: GetFileNamesDialog.Recursive.Label=Ricorsivo
      messages_fr_FR: GetFileNamesDialog.Recursive.Label=[TRANSLATION NEEDED]
      messages_de_DE: GetFileNamesDialog.Recursive.Label=[TRANSLATION NEEDED]
      messages_es_AR: GetFileNamesDialog.Recursive.Label=[TRANSLATION NEEDED]
      messages_es_ES: GetFileNamesDialog.Recursive.Label=[TRANSLATION NEEDED]
      messages_ja_JP: GetFileNamesDialog.Recursive.Label=[TRANSLATION NEEDED]
      messages_ko_KR: GetFileNamesDialog.Recursive.Label=[TRANSLATION NEEDED]
      messages_zh_CN: GetFileNamesDialog.Recursive.Label=[TRANSLATION NEEDED]

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dome.santoro Domenico Santoro
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: