<?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: delete files more than 45 days (example) old? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259232#M40772</link>
    <description>ok... now I can't figure out how I can filter on mtime_string and return either abs_path or basename to tFileList or tFileDelete&lt;BR /&gt;I mean, I think I can do some of the filtering in something like tMap, but I don't know if thats the right way to do it</description>
    <pubDate>Thu, 29 May 2008 20:34:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-05-29T20:34:05Z</dc:date>
    <item>
      <title>delete files more than 45 days (example) old?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259226#M40766</link>
      <description>So, I figure once I get a list of these files, I can just use tFileDelete to delete them. (I assume I would feed into tFileList and then make a connection to tFileDelete, like in the pic, but I'm not positive.) 
&lt;BR /&gt; 
&lt;BR /&gt;What I don't know is how to read a directory and get a list of the (zip) files that are older that today minus x # of days. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MC31.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141210i2BC523EEF4542E5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MC31.jpg" alt="0683p000009MC31.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Sat, 16 Nov 2024 14:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259226#M40766</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: delete files more than 45 days (example) old?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259227#M40767</link>
      <description>Hello
&lt;BR /&gt;The tFileProperties component(under File--&amp;gt;Management family) can fit your need. With tFileProperties component, you can get the create time of the file.
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Thu, 22 May 2008 08:23:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259227#M40767</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-05-22T08:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: delete files more than 45 days (example) old?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259228#M40768</link>
      <description>what version is that in? Cause, its not showing up for me in TOS 2.3.3r13892 
&lt;BR /&gt; 
&lt;BR /&gt;Ah, ok, I see it for the Perl version, but I'm in Java... 
&lt;BR /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt;</description>
      <pubDate>Thu, 22 May 2008 18:46:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259228#M40768</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-05-22T18:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: delete files more than 45 days (example) old?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259229#M40769</link>
      <description>this bug topic (3545) seems to indicate that the java module is completed in 2.4.0RC1. are the fixes that are in 2.3.3 also in the latest 2.4.0 release? (RC2) 
&lt;BR /&gt; 
&lt;BR /&gt;Guess I'm about to find out.</description>
      <pubDate>Thu, 22 May 2008 19:18:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259229#M40769</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-05-22T19:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: delete files more than 45 days (example) old?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259230#M40770</link>
      <description>ok, so... is there somewhere I can find documentation on tFileProperties? cause its not in the most recent documentation available here 
&lt;A href="http://www.talend.com/resources/documentation.php" rel="nofollow noopener noreferrer"&gt;http://www.talend.com/resources/documentation.php&lt;/A&gt;
&lt;BR /&gt;and its not available in the help linked from TOS : 
&lt;A href="http://127.0.0.1:50949/help/nav/2_2" rel="nofollow noopener noreferrer"&gt;http://127.0.0.1:50949/help/nav/2_2&lt;/A&gt;
&lt;BR /&gt;or can someone tell me how to use this thing? please!</description>
      <pubDate>Thu, 22 May 2008 19:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259230#M40770</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-05-22T19:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: delete files more than 45 days (example) old?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259231#M40771</link>
      <description>Hello 
&lt;BR /&gt;The tFileProperties component describes the properties of one file, include: 
&lt;BR /&gt;abs_path: the absolute path 
&lt;BR /&gt;dirname: the direcotry name 
&lt;BR /&gt;basename: the file name 
&lt;BR /&gt;mode_string: read or write 
&lt;BR /&gt;size: the size of file 
&lt;BR /&gt;mtime: the create time of file, return millisecond (long) 
&lt;BR /&gt;mtime_string: the create time of file, return a date (String) 
&lt;BR /&gt;Here is a simple scenario(see the screenshot) 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCDQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155981i93270F64166A9313/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCDQ.png" alt="0683p000009MCDQ.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCHe.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136736iD2439A9BED010F29/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCHe.png" alt="0683p000009MCHe.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCHj.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151501iD1292E078403E9E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCHj.png" alt="0683p000009MCHj.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 23 May 2008 03:53:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259231#M40771</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-05-23T03:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: delete files more than 45 days (example) old?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259232#M40772</link>
      <description>ok... now I can't figure out how I can filter on mtime_string and return either abs_path or basename to tFileList or tFileDelete&lt;BR /&gt;I mean, I think I can do some of the filtering in something like tMap, but I don't know if thats the right way to do it</description>
      <pubDate>Thu, 29 May 2008 20:34:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259232#M40772</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-05-29T20:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: delete files more than 45 days (example) old?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259233#M40773</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;ok... now I can't figure out how I can filter on mtime_string and return either abs_path or basename to tFileList or tFileDelete&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Here is a Java example, Please see the screenshot. 
&lt;BR /&gt; 
&lt;PRE&gt; /**&lt;BR /&gt;     * Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT&lt;BR /&gt;     * represented by this &amp;lt;tt&amp;gt;Date&amp;lt;/tt&amp;gt; object.&lt;BR /&gt;     *&lt;BR /&gt;     * @return  the number of milliseconds since January 1, 1970, 00:00:00 GMT&lt;BR /&gt;     *          represented by this date.&lt;BR /&gt;     */&lt;BR /&gt;    public long getTime() {&lt;BR /&gt;        return getTimeImpl();&lt;BR /&gt;    }&lt;/PRE&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCCH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129969i033AFBE7EAD218BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCCH.png" alt="0683p000009MCCH.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCHo.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149912iC2585FFF1D895C16/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCHo.png" alt="0683p000009MCHo.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MC7l.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141872i000766A03B6AB1A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MC7l.png" alt="0683p000009MC7l.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCHt.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133100i6E5F4C2299F35879/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCHt.png" alt="0683p000009MCHt.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCHy.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147663i785A58E48D5BCB62/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCHy.png" alt="0683p000009MCHy.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 30 May 2008 03:37:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259233#M40773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-05-30T03:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: delete files more than 45 days (example) old?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259234#M40774</link>
      <description>So I tried this process like you said, and it works perfectly... that is, until I try to change the # of days to anything greater than 24 
&lt;BR /&gt;I tried a bunch of different days, and all the ones &amp;lt;=24 worked, and all the ones &amp;gt;24 caused all the files to be deleted 
&lt;BR /&gt; 
&lt;U&gt;Picture Information&lt;/U&gt; 
&lt;BR /&gt;1. contents of the folder before I run the clean up process 
&lt;BR /&gt;2. process with tFilterRow set to delete files created before 
&lt;B&gt;25&lt;/B&gt; days 
&lt;BR /&gt;3. results of running the process defined in #2, where all files are deleted (whether they meet the filter criteria or not : before 5/6/08) 
&lt;BR /&gt;2. process with tFilterRow set to delete files created before 
&lt;B&gt;24&lt;/B&gt; days 
&lt;BR /&gt;3. results of running the process defined in #4, where only the appropriate files are deleted (any files before 5/7/08) 
&lt;BR /&gt;Note: 
&lt;BR /&gt;tFileOutputDelimited_2 creates out_orig.txt (a list of all the files found in tFileList_3) 
&lt;BR /&gt;tFileOutputDelimited_1 creates out.txt (a list of all the files deleted by tFileDelete_1) 
&lt;BR /&gt;tFileOutputDelimited_3 creates out_notdeleted.txt (a list of all the files rejected by tFilterRow_1) 
&lt;BR /&gt; 
&lt;BR /&gt;I find it kind of odd that the advanced filter in tFilterRow_1 works where ### (in the quoted formula below) is &amp;lt;=24, but not greater... 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;((TalendDate.getCurrentDate().getTime()-(table1.mtime+86400000*###))&amp;gt;0&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt;</description>
      <pubDate>Fri, 30 May 2008 20:15:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259234#M40774</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-05-30T20:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: delete files more than 45 days (example) old?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259235#M40775</link>
      <description>Ok, I figured out how to get around the problem I posted above:&lt;BR /&gt;1. set ### (in the post above) to a context variable (ex: context.NumDays_Past)&lt;BR /&gt;2. set the Type of that context variable to Double&lt;BR /&gt;      a. You could use Float or Long, in place of Double, here - they both worked for me&lt;BR /&gt;      b. Don't use Integer or Short, they cause all the files in the folder to delete.&lt;BR /&gt;      c. Don't use Big Integer, it causes an error (Exception in thread "main" java.lang.Error: Unresolved compilation problem: The operator * is undefined for the argument type(s) int, BigDecimal)&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;(TalendDate.getCurrentDate().getTime()-(86400000*context.NumDays_Past))&amp;gt;table1.mtime&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 30 May 2008 21:28:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259235#M40775</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-05-30T21:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: delete files more than 45 days (example) old?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259236#M40776</link>
      <description>Hi, I am having error to this context.NumDays_Past&lt;BR /&gt;nullpointerexception.&lt;BR /&gt;what values you put in context.NumDays_Past?&lt;BR /&gt;Regards.</description>
      <pubDate>Tue, 28 Feb 2012 03:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259236#M40776</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-02-28T03:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: delete files more than 45 days (example) old?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259237#M40777</link>
      <description>Hi,I have reproduce the problem.&lt;BR /&gt;This is cause by 60*60*24*1000*25 out of scope of Integer type(result is: -2134967296)&lt;BR /&gt;So the result alway false&lt;BR /&gt;Solution:change 60*60*24*1000*25 ---to---&amp;gt; 60*60*24*1000*25L(result is: 2160000000)&lt;BR /&gt;Change the result is long type.</description>
      <pubDate>Thu, 09 Jan 2014 10:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259237#M40777</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-09T10:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: delete files more than 45 days (example) old?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259238#M40778</link>
      <description>Dear All, 
&lt;BR /&gt;I am trying to delete file which are 100 days old , I have used same approach which is mentioned in below email but I AM UNABLE TO UNDERSTAND FOLLOWING THINGS. 
&lt;BR /&gt;STEPS: 
&lt;BR /&gt;1) please check my log files which are in format of: (Name of the JOB_currentdate_time) 
&lt;BR /&gt;Example:==&amp;gt; Log_InsertDIMItems_2014-07-11-13-27-18 
&lt;BR /&gt;This file i have created on Friday 11th July 
&lt;BR /&gt;I want to delete files which are older than 100 days. 
&lt;BR /&gt;2) Screenshot of my job: 
&lt;BR /&gt;3) Code in tFilter Component: Advance Code: 
&lt;BR /&gt;(TalendDate.getCurrentDate().getTime()-(File_prop.mtime+86400000*24))&amp;gt;0 
&lt;BR /&gt;By using this query(24 days limit) then 0 files are deleted , but by using 25 all files are getting deleted which is confusing for me. Please advise where I am wrong ? 
&lt;BR /&gt;I am not getting how this is happening. 
&lt;BR /&gt;Can anyone please guide me on same. 
&lt;BR /&gt;My requirement is of deleting files which are 1oo days old . 
&lt;BR /&gt;Thanks and Regards 
&lt;BR /&gt;RSH 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCII.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142761i596D5882824BCF1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCII.jpg" alt="0683p000009MCII.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MC2i.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147458iD88F10852A73D8FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MC2i.jpg" alt="0683p000009MC2i.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCIN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144166i4BC8476D6931A2DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCIN.png" alt="0683p000009MCIN.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCIS.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140299i5F8D4B07E6E66F3F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCIS.jpg" alt="0683p000009MCIS.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCBO.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155529i4FBD115501BCB290/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCBO.jpg" alt="0683p000009MCBO.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 14 Jul 2014 11:02:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259238#M40778</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-14T11:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: delete files more than 45 days (example) old?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259239#M40779</link>
      <description>Hi RSH,&lt;BR /&gt;tFileList--&amp;gt;tFileProperties--&amp;gt;tJavaRow--&amp;gt;tFileDelete&lt;BR /&gt;Use this flow, assign file names to context variables in tJavaRow based on your date condition and use that context variable in tFileDelete component for file to delete..&lt;BR /&gt;try this&lt;BR /&gt;vaibhav</description>
      <pubDate>Mon, 14 Jul 2014 11:08:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259239#M40779</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-14T11:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: delete files more than 45 days (example) old?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259240#M40780</link>
      <description>Hi vaibhav,
&lt;BR /&gt;Thank you for reply.
&lt;BR /&gt;Its not possible to declare context for each file because we have near about 30 different names of files. Is there any possibility to manipulate on current snapshot which i provided?
&lt;BR /&gt;I am not getting where I made mistake ?
&lt;BR /&gt;Regards
&lt;BR /&gt;RSH</description>
      <pubDate>Mon, 14 Jul 2014 11:13:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259240#M40780</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-14T11:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: delete files more than 45 days (example) old?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259241#M40781</link>
      <description>If I use :
&lt;BR /&gt;(TalendDate.getCurrentDate().getTime()-(File_prop.mtime+86400000*25))&amp;gt;0
&lt;BR /&gt;All files are getting DELETED (--NOT SURE HOW)
&lt;BR /&gt;Please find below is an snapshot of result:
&lt;BR /&gt;mtime mtime_string GetDate Calculated_Data_OF_Advance_Filter
&lt;BR /&gt;1,40508E+12 Fri Jul 11 13:27:20 CEST 2014 1,40533E+12 2390162346
&lt;BR /&gt;1,40508E+12 Fri Jul 11 13:27:20 CEST 2014 1,40533E+12 2390162867
&lt;BR /&gt;1,40508E+12 Fri Jul 11 13:27:19 CEST 2014 1,40533E+12 2390163079
&lt;BR /&gt;1,40508E+12 Fri Jul 11 13:27:20 CEST 2014 1,40533E+12 2390162220
&lt;BR /&gt;1,40508E+12 Fri Jul 11 13:27:20 CEST 2014 1,40533E+12 2390162663
&lt;BR /&gt;
&lt;BR /&gt;If i use 
&lt;BR /&gt;(TalendDate.getCurrentDate().getTime()-(File_prop.mtime+86400000*24))&amp;gt;0
&lt;BR /&gt;NO file is deleted..</description>
      <pubDate>Mon, 14 Jul 2014 11:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259241#M40781</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-14T11:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: delete files more than 45 days (example) old?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259242#M40782</link>
      <description>Hi,
&lt;BR /&gt;mtime is unix timestamp in millisecond.. 86400000 represents one day
&lt;BR /&gt;TalendDate.getCurrentDate().getTime()-86400000*2) - (input_row.mtime)&amp;gt;0
&lt;BR /&gt;Above code deletes file which are older than two days.. you replace 2 by 100, then it should do the job... use wherever required in your design...
&lt;BR /&gt;Try this.
&lt;BR /&gt;vaibhav</description>
      <pubDate>Mon, 14 Jul 2014 11:40:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259242#M40782</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-14T11:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: delete files more than 45 days (example) old?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259243#M40783</link>
      <description>Hi Vaibhav, 
&lt;BR /&gt;I used the query which you suggested, but still strange result. 
&lt;BR /&gt;All files from server got deleted 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Not sure how this is working out: 
&lt;BR /&gt;Query: 
&lt;BR /&gt;(TalendDate.getCurrentDate().getTime()-86400000*100) - (File_prop.mtime)&amp;gt;0</description>
      <pubDate>Mon, 14 Jul 2014 12:06:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259243#M40783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-14T12:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: delete files more than 45 days (example) old?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259244#M40784</link>
      <description>Hello ,&lt;BR /&gt;Can anyone please guide me on my issue please ?&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;Regards&lt;BR /&gt;RSH</description>
      <pubDate>Tue, 15 Jul 2014 05:04:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259244#M40784</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-15T05:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: delete files more than 45 days (example) old?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259245#M40785</link>
      <description>can you try below code. it will help you on this issue. &lt;BR /&gt;use this code in If condition. &lt;BR /&gt;&lt;PRE&gt;new Date(File_prop.mtime).before(TalendDate.addDate(TalendDate.getCurrentDate(), -44, "dd"))==true&lt;/PRE&gt;&lt;BR /&gt;you can convert File_prop.mtime date into Date format using new Date(File_prop.mtime) constructor then you can add or minus days from date and compare with current date .</description>
      <pubDate>Tue, 15 Jul 2014 06:43:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-files-more-than-45-days-example-old/m-p/2259245#M40785</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-15T06:43:08Z</dc:date>
    </item>
  </channel>
</rss>

