<?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 calculate the number of files and sub-folders of a folder in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/calculate-the-number-of-files-and-sub-folders-of-a-folder/m-p/23262#M10163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;I am trying &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/zhihailiu/alfresco-folder-size" rel="nofollow noopener noreferrer" target="_blank"&gt;https://github.com/zhihailiu/alfresco-folder-size&lt;/A&gt;&lt;SPAN&gt; to calculate the size of folder in alfresco,it is working fine for calculating the size of folder but I also want to calculate the number of sub folders and files in the folder.any guidance regarding this would be highly appreciated&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Aug 2017 16:46:50 GMT</pubDate>
    <dc:creator>ayushi_agrahari</dc:creator>
    <dc:date>2017-08-29T16:46:50Z</dc:date>
    <item>
      <title>calculate the number of files and sub-folders of a folder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/calculate-the-number-of-files-and-sub-folders-of-a-folder/m-p/23262#M10163</link>
      <description>I am trying https://github.com/zhihailiu/alfresco-folder-size to calculate the size of folder in alfresco,it is working fine for calculating the size of folder but I also want to calculate the number of sub folders and files in the folder.any guidance regarding this would be highly appreciated</description>
      <pubDate>Tue, 29 Aug 2017 16:46:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/calculate-the-number-of-files-and-sub-folders-of-a-folder/m-p/23262#M10163</guid>
      <dc:creator>ayushi_agrahari</dc:creator>
      <dc:date>2017-08-29T16:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: calculate the number of files and sub-folders of a folder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/calculate-the-number-of-files-and-sub-folders-of-a-folder/m-p/23263#M10164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ayushi Agrahatri,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; By using java api you can calculate&amp;nbsp;the subfolders.&lt;/P&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;List&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;FileInfo&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; children &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; serviceRegistry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getFileFolderService&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;listFolders&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;src&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; subfoldersize &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; children&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;size&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;Thanks,&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;Kalpesh&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&lt;A class="" href="http://www.contcentric.com" rel="nofollow noopener noreferrer" style="color: #1e88e5; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;ContCentric&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 05:51:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/calculate-the-number-of-files-and-sub-folders-of-a-folder/m-p/23263#M10164</guid>
      <dc:creator>kalpesh_c2</dc:creator>
      <dc:date>2017-08-30T05:51:23Z</dc:date>
    </item>
  </channel>
</rss>

