<?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 Use javascript to count the number of files in directory in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/use-javascript-to-count-the-number-of-files-in-directory/m-p/44232#M18071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody i need some help. I have to use javascript to count the number of files in a directory and have that value in a variable. Does anyone knows how to do that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Apr 2018 14:58:46 GMT</pubDate>
    <dc:creator>franksant13</dc:creator>
    <dc:date>2018-04-06T14:58:46Z</dc:date>
    <item>
      <title>Use javascript to count the number of files in directory</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/use-javascript-to-count-the-number-of-files-in-directory/m-p/44232#M18071</link>
      <description>Hello everybody i need some help. I have to use javascript to count the number of files in a directory and have that value in a variable. Does anyone knows how to do that.&amp;nbsp;Thanks in advance.&amp;nbsp;</description>
      <pubDate>Fri, 06 Apr 2018 14:58:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/use-javascript-to-count-the-number-of-files-in-directory/m-p/44232#M18071</guid>
      <dc:creator>franksant13</dc:creator>
      <dc:date>2018-04-06T14:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Use javascript to count the number of files in directory</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/use-javascript-to-count-the-number-of-files-in-directory/m-p/44233#M18072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have your directory in a variable like "node", you get the number of children of this node via node.children.length&lt;BR /&gt;see&amp;nbsp;&lt;A class="link-titled" href="https://docs.alfresco.com/community/references/API-JS-ScriptNode.html" title="https://docs.alfresco.com/community/references/API-JS-ScriptNode.html" rel="nofollow noopener noreferrer"&gt;ScriptNode API | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or use&amp;nbsp;&lt;A class="link-titled" href="https://docs.alfresco.com/community/references/API-JS-childFileFolders.html" title="https://docs.alfresco.com/community/references/API-JS-childFileFolders.html" rel="nofollow noopener noreferrer"&gt;childFileFolders | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;node.childFileFolders(true, false).length&lt;/P&gt;&lt;P&gt;there you can choose to get all files, directories or files and directories...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2018 13:02:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/use-javascript-to-count-the-number-of-files-in-directory/m-p/44233#M18072</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2018-04-07T13:02:00Z</dc:date>
    </item>
  </channel>
</rss>

