<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Retrieve all folders with sub-folders from SharePoint List</title>
	<atom:link href="http://www.ktskumar.com/blog/2009/07/10/retrieve-all-folders-from-list/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ktskumar.com/blog/2009/07/10/retrieve-all-folders-from-list/</link>
	<description>more points 2 share - Sharepoint</description>
	<lastBuildDate>Mon, 28 Jun 2010 12:11:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Kishore</title>
		<link>http://www.ktskumar.com/blog/2009/07/10/retrieve-all-folders-from-list/#comment-89</link>
		<dc:creator>Kishore</dc:creator>
		<pubDate>Fri, 19 Feb 2010 07:15:16 +0000</pubDate>
		<guid isPermaLink="false">http://ktskumar.com/blog/?p=166#comment-89</guid>
		<description>Really Very Useful for beginners.Works fine.</description>
		<content:encoded><![CDATA[<p>Really Very Useful for beginners.Works fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kishore</title>
		<link>http://www.ktskumar.com/blog/2009/07/10/retrieve-all-folders-from-list/#comment-88</link>
		<dc:creator>Kishore</dc:creator>
		<pubDate>Fri, 19 Feb 2010 07:14:47 +0000</pubDate>
		<guid isPermaLink="false">http://ktskumar.com/blog/?p=166#comment-88</guid>
		<description>Nice Article. Helped me alot. Thanks.</description>
		<content:encoded><![CDATA[<p>Nice Article. Helped me alot. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ravikiran</title>
		<link>http://www.ktskumar.com/blog/2009/07/10/retrieve-all-folders-from-list/#comment-87</link>
		<dc:creator>ravikiran</dc:creator>
		<pubDate>Mon, 14 Sep 2009 12:30:40 +0000</pubDate>
		<guid isPermaLink="false">http://ktskumar.com/blog/?p=166#comment-87</guid>
		<description>Hi Shanta,
I am using this code however it gives error,even I have tried with default site also there is no output.
Please help me with this.

http://servername

         SPSite site = new SPSite(&quot;http://docholder:41653/&quot;);
        SPWebCollection collWebsites = site.AllWebs;
        foreach (SPWeb oWebsite in collWebsites)
        {
            SPFolderCollection collFolders = oWebsite.Folders;

            foreach (SPFolder oFolder in collFolders)
            {
                SPFileCollection collFiles = oFolder.Files;

                long lngTotalFileSize = 0;

                for (int intIndex = 0; intIndex &lt; collFiles.Count; intIndex++)
                {
                    lngTotalFileSize += collFiles[intIndex].Length;
                }

                Label1.Text += &quot; Web: &quot; +
                    oWebsite.Name
                    + &quot; Folder: &quot; +
                    oFolder.Name + &quot; Number: &quot;
                    + oFolder.Files.Count +
                    &quot; Size: &quot; + lngTotalFileSize + &quot;&quot;;
            }
            oWebsite.Dispose();
        }</description>
		<content:encoded><![CDATA[<p>Hi Shanta,<br />
I am using this code however it gives error,even I have tried with default site also there is no output.<br />
Please help me with this.</p>
<p><a href="http://servername" rel="nofollow">http://servername</a></p>
<p>         SPSite site = new SPSite(&#8220;http://docholder:41653/&#8221;);<br />
        SPWebCollection collWebsites = site.AllWebs;<br />
        foreach (SPWeb oWebsite in collWebsites)<br />
        {<br />
            SPFolderCollection collFolders = oWebsite.Folders;</p>
<p>            foreach (SPFolder oFolder in collFolders)<br />
            {<br />
                SPFileCollection collFiles = oFolder.Files;</p>
<p>                long lngTotalFileSize = 0;</p>
<p>                for (int intIndex = 0; intIndex &lt; collFiles.Count; intIndex++)<br />
                {<br />
                    lngTotalFileSize += collFiles[intIndex].Length;<br />
                }</p>
<p>                Label1.Text += &quot; Web: &quot; +<br />
                    oWebsite.Name<br />
                    + &quot; Folder: &quot; +<br />
                    oFolder.Name + &quot; Number: &quot;<br />
                    + oFolder.Files.Count +<br />
                    &quot; Size: &quot; + lngTotalFileSize + &quot;&#8221;;<br />
            }<br />
            oWebsite.Dispose();<br />
        }</p>
]]></content:encoded>
	</item>
</channel>
</rss>
