<?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: file timestamp without reading full file data in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/file-timestamp-without-reading-full-file-data/m-p/1762242#M58962</link>
    <description>&lt;P&gt;You don't need to load the files at all else you could loop through the folder and fetching the OS information directly. It means something like this:&lt;/P&gt;&lt;P&gt;for each file in filelist('&lt;SPAN&gt;lib://distribution_files/*&lt;/SPAN&gt;')&lt;BR /&gt;&amp;nbsp; &amp;nbsp;files: load filetime('$(file)') as FileTime, subfield('$(file)', '\', -1) as File autogenerate 1;&lt;BR /&gt;next&lt;/P&gt;&lt;P&gt;If you looked in the help or the community by for each or filelist you will find various examples of the approach.&lt;/P&gt;&lt;P&gt;- Marcus&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Nov 2020 12:09:50 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2020-11-17T12:09:50Z</dc:date>
    <item>
      <title>file timestamp without reading full file data</title>
      <link>https://community.qlik.com/t5/App-Development/file-timestamp-without-reading-full-file-data/m-p/1761968#M58916</link>
      <description>&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;I am trying to read all files from a directory and get their filename &amp;amp; File time stamp. It works fine with below script however it reads the whole file. some of my files are huge 5gb+ and I don't want script to read full data inside the file, i am only interested in filename &amp;amp; timestamp and not what is inside of the file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;test:&lt;BR /&gt;&amp;nbsp;Load filebasename() as temp_filename,&lt;BR /&gt;FileTime() as temp_filetime&lt;BR /&gt;&amp;nbsp;FROM [lib://distribution_files/*];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 15:43:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/file-timestamp-without-reading-full-file-data/m-p/1761968#M58916</guid>
      <dc:creator>userid128223</dc:creator>
      <dc:date>2020-11-16T15:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: file timestamp without reading full file data</title>
      <link>https://community.qlik.com/t5/App-Development/file-timestamp-without-reading-full-file-data/m-p/1761971#M58917</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/12863"&gt;@userid128223&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try like below..&lt;/P&gt;&lt;P&gt;1. WHERE(RowNo() &amp;lt; 1 );&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;2. Where 1=0;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;3. First 1 Load filebasename() as temp_filename,&lt;/P&gt;&lt;P&gt;FileTime() as temp_filetime&lt;BR /&gt;&amp;nbsp;FROM your source;&lt;/P&gt;&lt;P&gt;Either of 3 option, will help you.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 15:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/file-timestamp-without-reading-full-file-data/m-p/1761971#M58917</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-11-16T15:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: file timestamp without reading full file data</title>
      <link>https://community.qlik.com/t5/App-Development/file-timestamp-without-reading-full-file-data/m-p/1762242#M58962</link>
      <description>&lt;P&gt;You don't need to load the files at all else you could loop through the folder and fetching the OS information directly. It means something like this:&lt;/P&gt;&lt;P&gt;for each file in filelist('&lt;SPAN&gt;lib://distribution_files/*&lt;/SPAN&gt;')&lt;BR /&gt;&amp;nbsp; &amp;nbsp;files: load filetime('$(file)') as FileTime, subfield('$(file)', '\', -1) as File autogenerate 1;&lt;BR /&gt;next&lt;/P&gt;&lt;P&gt;If you looked in the help or the community by for each or filelist you will find various examples of the approach.&lt;/P&gt;&lt;P&gt;- Marcus&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 12:09:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/file-timestamp-without-reading-full-file-data/m-p/1762242#M58962</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-11-17T12:09:50Z</dc:date>
    </item>
  </channel>
</rss>

