<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: tFileList/tFileCopy - using to dynamically rename files from a table of name from/to values in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFileList-tFileCopy-using-to-dynamically-rename-files-from-a/m-p/2375335#M137771</link>
    <description>&lt;P&gt;you could write the filepaths returned by the tFileList to a csv, hash, or temp db table - then feed that through a tmap with a lookup on the from/to names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or you can take the iterate of your tFileList and attached it to a tIterateToFlow and feed that result into a tmap with lookup.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Nov 2021 17:19:22 GMT</pubDate>
    <dc:creator>billimmer</dc:creator>
    <dc:date>2021-11-23T17:19:22Z</dc:date>
    <item>
      <title>tFileList/tFileCopy - using to dynamically rename files from a table of name from/to values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileList-tFileCopy-using-to-dynamically-rename-files-from-a/m-p/2375334#M137770</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to rename a directory of files using a mapping table containing the current file name, and the name I want the file to be renamed to. I have successfully created the mapping table but struggling with the correct use of the tFileList and tFileCopy syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;From_Name                      To_Name&lt;/P&gt;&lt;P&gt;kjhfsdkfd34789.jpg           Hat-1.jpg&lt;/P&gt;&lt;P&gt;asdsjk894q0dljk.jpg          Hat-2.jpg&lt;/P&gt;&lt;P&gt;asdjklj93kl5490.jpg          Pants-1.jpg&lt;/P&gt;&lt;P&gt;adkjsdjs9239r47.jpg          Shoes-1.jpg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I have read I need to utilise global context variables but cant find examples that iterate through the directory and look up the desired output name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:29:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileList-tFileCopy-using-to-dynamically-rename-files-from-a/m-p/2375334#M137770</guid>
      <dc:creator>1636848613</dc:creator>
      <dc:date>2024-11-15T23:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: tFileList/tFileCopy - using to dynamically rename files from a table of name from/to values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileList-tFileCopy-using-to-dynamically-rename-files-from-a/m-p/2375335#M137771</link>
      <description>&lt;P&gt;you could write the filepaths returned by the tFileList to a csv, hash, or temp db table - then feed that through a tmap with a lookup on the from/to names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or you can take the iterate of your tFileList and attached it to a tIterateToFlow and feed that result into a tmap with lookup.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 17:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileList-tFileCopy-using-to-dynamically-rename-files-from-a/m-p/2375335#M137771</guid>
      <dc:creator>billimmer</dc:creator>
      <dc:date>2021-11-23T17:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: tFileList/tFileCopy - using to dynamically rename files from a table of name from/to values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileList-tFileCopy-using-to-dynamically-rename-files-from-a/m-p/2375336#M137772</link>
      <description>&lt;P&gt;Thanks! Got it working as per below in case anyone else has this requirement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1iykAAB.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156734i0245587228271352/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1iykAAB.jpg" alt="0695b00000L1iykAAB.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 05:42:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileList-tFileCopy-using-to-dynamically-rename-files-from-a/m-p/2375336#M137772</guid>
      <dc:creator>1636848613</dc:creator>
      <dc:date>2021-11-24T05:42:33Z</dc:date>
    </item>
  </channel>
</rss>

