<?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: [resolved] current_file in tFTPFileProperties in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-current-file-in-tFTPFileProperties/m-p/2310001#M81163</link>
    <description>Hello
&lt;BR /&gt;It is not a bug, the return value is a absolute path of file.
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;How can I get the file name alone ?&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;tFTPFileList --iterate--&amp;gt;tFTPFileProperties 
&lt;BR /&gt;Output the basename column of tFTPFileProperties, that's the file name alone.
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
    <pubDate>Wed, 20 May 2009 04:49:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-05-20T04:49:02Z</dc:date>
    <item>
      <title>[resolved] current_file in tFTPFileProperties</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-current-file-in-tFTPFileProperties/m-p/2310000#M81162</link>
      <description>Hello ! 
&lt;BR /&gt;In order to find the most recent file contained in a folder on a FTP server, I'd like to use to tFTPFileProperties on each file of the folder. 
&lt;BR /&gt;I have a tFTPFileList in which my directory is "/home/folder" 
&lt;BR /&gt;I've linked the tFTPFileList to a tFTPFileProperties in which I wanted to get all the file names using "((String)globalMap.get("tFTPFileList_1_CURRENT_FILE"))" 
&lt;BR /&gt;However "((String)globalMap.get("tFTPFileList_1_CURRENT_FILE"))" is returning me "/home/folder/filename1" instead of just "filename1" and I don't know how to get the file name without the file path. 
&lt;BR /&gt;( "((String)globalMap.get("tFTPFileList_1_CURRENT_FILEPATH"))" is giving me "/home/folder//home/folder/filename1" ) 
&lt;BR /&gt;Is this a bug ? How can I get the file name alone ? 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Sat, 16 Nov 2024 13:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-current-file-in-tFTPFileProperties/m-p/2310000#M81162</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] current_file in tFTPFileProperties</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-current-file-in-tFTPFileProperties/m-p/2310001#M81163</link>
      <description>Hello
&lt;BR /&gt;It is not a bug, the return value is a absolute path of file.
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;How can I get the file name alone ?&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;tFTPFileList --iterate--&amp;gt;tFTPFileProperties 
&lt;BR /&gt;Output the basename column of tFTPFileProperties, that's the file name alone.
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 20 May 2009 04:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-current-file-in-tFTPFileProperties/m-p/2310001#M81163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-20T04:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] current_file in tFTPFileProperties</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-current-file-in-tFTPFileProperties/m-p/2310002#M81164</link>
      <description>Thank you shong ! However, my problem was concerning the tFTPFileProperties settings as I wanted to put the filename in the "file" field. 
&lt;BR /&gt;Can you tell me how I can do this ? 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 20 May 2009 08:23:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-current-file-in-tFTPFileProperties/m-p/2310002#M81164</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-20T08:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] current_file in tFTPFileProperties</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-current-file-in-tFTPFileProperties/m-p/2310003#M81165</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;my problem was concerning the tFTPFileProperties settings as I wanted to put the filename in the "file" field.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;You should put the file path in the file filed of tFTPFileProperties, if you link a tFTPFileList to tFTPFileProperties, the file path shoud be set as: 
&lt;BR /&gt;((String)globalMap.get("tFTPFileList_1_CURRENT_FILEPATH")) 
&lt;BR /&gt;why would you like set it as the file name only? 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 20 May 2009 10:04:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-current-file-in-tFTPFileProperties/m-p/2310003#M81165</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-20T10:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] current_file in tFTPFileProperties</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-current-file-in-tFTPFileProperties/m-p/2310004#M81166</link>
      <description>I don't understand because here are my results according to my settings when using only a tFTPFileProperties linked to a tLogRow : 
&lt;BR /&gt;remote directory : "." 
&lt;BR /&gt;file : "/home/folder/filename.txt" 
&lt;BR /&gt;result : ||||| 
&lt;BR /&gt; 
&lt;BR /&gt;remote directory : "/home/folder/filename.txt" 
&lt;BR /&gt;file : "." 
&lt;BR /&gt;result : Exception in component tFTPFileProperties_1 
&lt;BR /&gt;com.enterprisedt.net.ftp.FTPException: Unable to determine if file '/home/folder/filename.txt/.' exists. 
&lt;BR /&gt; 
&lt;BR /&gt;remote directory : "/home/folder/" 
&lt;BR /&gt;file : "filename.txt" 
&lt;BR /&gt;result : /home/folder/filename.txt|/home/folder/|filename.txt|4023|1241444237000|Mon May 04 15:37:17 CEST 2009 
&lt;BR /&gt;So it seems to me that I really need to separate the filename from the filepath to get what I want... Is there something I don't understand here ? 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 20 May 2009 10:21:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-current-file-in-tFTPFileProperties/m-p/2310004#M81166</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-20T10:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] current_file in tFTPFileProperties</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-current-file-in-tFTPFileProperties/m-p/2310005#M81167</link>
      <description>Hello 
&lt;BR /&gt;I understand you now, you have set the file path in remote directory. Now, you can get the file name like this: 
&lt;BR /&gt; 
&lt;PRE&gt;((String)globalMap.get("tFTPFileList_1_CURRENT_FILE")).substring(((String)globalMap.get("tFTPFileList_1_CURRENT_FILE")).lastIndexOf("/")+1)&lt;/PRE&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 20 May 2009 10:32:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-current-file-in-tFTPFileProperties/m-p/2310005#M81167</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-20T10:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] current_file in tFTPFileProperties</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-current-file-in-tFTPFileProperties/m-p/2310006#M81168</link>
      <description>Hello Augustine, 
&lt;BR /&gt;you can get only the filename with this expression in a Tmap : 
&lt;BR /&gt;row.basename.substring(row.basename.lastIndexOf("/")+1)</description>
      <pubDate>Wed, 20 May 2009 10:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-current-file-in-tFTPFileProperties/m-p/2310006#M81168</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-20T10:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] current_file in tFTPFileProperties</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-current-file-in-tFTPFileProperties/m-p/2310007#M81169</link>
      <description>Thank you shong ! This is what I needed 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 20 May 2009 10:54:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-current-file-in-tFTPFileProperties/m-p/2310007#M81169</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-20T10:54:11Z</dc:date>
    </item>
  </channel>
</rss>

