<?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: Boost Filesystem Library: Writing Portable C++ Programs to Acess The Filesystem</title>
	<atom:link href="http://beans.seartipy.com/2006/05/10/boost-filesystem-library-writing-portable-c-programs-to-acess-the-filesystem/feed/" rel="self" type="application/rss+xml" />
	<link>http://beans.seartipy.com/2006/05/10/boost-filesystem-library-writing-portable-c-programs-to-acess-the-filesystem/</link>
	<description>"The time has come...to talk of many [technologies]." --Lewis Carroll('The Walrus and the Carpenter')</description>
	<lastBuildDate>Sun, 05 Feb 2012 15:38:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: tabrez</title>
		<link>http://beans.seartipy.com/2006/05/10/boost-filesystem-library-writing-portable-c-programs-to-acess-the-filesystem/comment-page-1/#comment-137570</link>
		<dc:creator>tabrez</dc:creator>
		<pubDate>Mon, 06 Apr 2009 17:40:51 +0000</pubDate>
		<guid isPermaLink="false">http://beans.seartipy.com/2006/05/10/boost-filesystem-library-writing-portable-c-programs-to-acess-the-filesystem/#comment-137570</guid>
		<description>Nope, that was wrongly copy/pasted from the earlier example I guess. Thanks for pointing it out, I have corrected the print message.</description>
		<content:encoded><![CDATA[<p>Nope, that was wrongly copy/pasted from the earlier example I guess. Thanks for pointing it out, I have corrected the print message.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Severin</title>
		<link>http://beans.seartipy.com/2006/05/10/boost-filesystem-library-writing-portable-c-programs-to-acess-the-filesystem/comment-page-1/#comment-137568</link>
		<dc:creator>Christian Severin</dc:creator>
		<pubDate>Mon, 06 Apr 2009 12:51:46 +0000</pubDate>
		<guid isPermaLink="false">http://beans.seartipy.com/2006/05/10/boost-filesystem-library-writing-portable-c-programs-to-acess-the-filesystem/#comment-137568</guid>
		<description>Question: is this

    if( !bf::exists(p) )
    {
        std::cout&lt;&lt;p.leaf()&lt;&lt;&quot; exists.\n&quot;;
      return -1;
    }

intentional?</description>
		<content:encoded><![CDATA[<p>Question: is this</p>
<p>    if( !bf::exists(p) )<br />
    {<br />
        std::cout&lt;&lt;p.leaf()&lt;&lt;&#8221; exists.\n&#8221;;<br />
      return -1;<br />
    }</p>
<p>intentional?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shubhashree</title>
		<link>http://beans.seartipy.com/2006/05/10/boost-filesystem-library-writing-portable-c-programs-to-acess-the-filesystem/comment-page-1/#comment-137268</link>
		<dc:creator>shubhashree</dc:creator>
		<pubDate>Mon, 01 Sep 2008 09:27:03 +0000</pubDate>
		<guid isPermaLink="false">http://beans.seartipy.com/2006/05/10/boost-filesystem-library-writing-portable-c-programs-to-acess-the-filesystem/#comment-137268</guid>
		<description>i need solution for the below question plz
consider 8X8 matrix. which has 0-15 elements, less than 0 , greater then 15. the elements will be stored in a different file.and the out put should be produced in different file. output should contain the elements only less than 0 and greater than 15 including which row and column ie location of the element?</description>
		<content:encoded><![CDATA[<p>i need solution for the below question plz<br />
consider 8X8 matrix. which has 0-15 elements, less than 0 , greater then 15. the elements will be stored in a different file.and the out put should be produced in different file. output should contain the elements only less than 0 and greater than 15 including which row and column ie location of the element?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Preet Kukreti</title>
		<link>http://beans.seartipy.com/2006/05/10/boost-filesystem-library-writing-portable-c-programs-to-acess-the-filesystem/comment-page-1/#comment-136983</link>
		<dc:creator>Preet Kukreti</dc:creator>
		<pubDate>Sat, 02 Feb 2008 09:07:41 +0000</pubDate>
		<guid isPermaLink="false">http://beans.seartipy.com/2006/05/10/boost-filesystem-library-writing-portable-c-programs-to-acess-the-filesystem/#comment-136983</guid>
		<description>Just a note on your second.cpp , im not sure that you can assume this at line 18-19:

//-------------
    else
        std::cout&lt;&lt;p.leaf()&lt;&lt;&quot; is a regular file.\n&quot;;
//-------------

here is a modified snippet from a project I am currently working on:

namespace fs = boost::filesystem;
void filetype_handler::classify(fs::path mypath){
	try{	
		if (fs::is_directory(mypath)){ //is it a directory
			std::cerr &lt;&lt; mypath &lt;&lt; &quot; is a directory&quot; &lt;&lt; std::endl;
		}
		else if (fs::is_regular(mypath)){ //is it a regular file
			std::cerr &lt;&lt; mypath &lt;&lt; &quot; is a regular file&quot; &lt;&lt; std::endl;
		}
		else if (fs::is_symlink(mypath)){ //is it a symbolic link?
			std::cerr &lt;&lt; mypath &lt;&lt; &quot; is a symlink&quot; &lt;&lt; std::endl;
		}
		else if (fs::is_other(mypath)){	//its something else...
			std::cerr &lt;&lt; mypath &lt;&lt; &quot; is an unknown filesystem entity&quot; &lt;&lt; std::endl;
		}
		else{} // should theoretically be equivalent to fs::is_other() branch above.
	}catch(fs::basic_filesystem_error e){
		std::cerr &lt;&lt; &quot;Cannot read path \&quot;&quot; &lt;&lt; mypath &lt;&lt; &quot;\&quot; : &quot;&lt;&lt; e.what() &lt;&lt;&quot;\n&quot;;
	}
}</description>
		<content:encoded><![CDATA[<p>Just a note on your second.cpp , im not sure that you can assume this at line 18-19:</p>
<p>//&#8212;&#8212;&#8212;&#8212;-<br />
    else<br />
        std::cout&lt;&lt;p.leaf()&lt;&lt;&#8221; is a regular file.\n&#8221;;<br />
//&#8212;&#8212;&#8212;&#8212;-</p>
<p>here is a modified snippet from a project I am currently working on:</p>
<p>namespace fs = boost::filesystem;<br />
void filetype_handler::classify(fs::path mypath){<br />
	try{<br />
		if (fs::is_directory(mypath)){ //is it a directory<br />
			std::cerr &lt;&lt; mypath &lt;&lt; &#8221; is a directory&#8221; &lt;&lt; std::endl;<br />
		}<br />
		else if (fs::is_regular(mypath)){ //is it a regular file<br />
			std::cerr &lt;&lt; mypath &lt;&lt; &#8221; is a regular file&#8221; &lt;&lt; std::endl;<br />
		}<br />
		else if (fs::is_symlink(mypath)){ //is it a symbolic link?<br />
			std::cerr &lt;&lt; mypath &lt;&lt; &#8221; is a symlink&#8221; &lt;&lt; std::endl;<br />
		}<br />
		else if (fs::is_other(mypath)){	//its something else&#8230;<br />
			std::cerr &lt;&lt; mypath &lt;&lt; &#8221; is an unknown filesystem entity&#8221; &lt;&lt; std::endl;<br />
		}<br />
		else{} // should theoretically be equivalent to fs::is_other() branch above.<br />
	}catch(fs::basic_filesystem_error e){<br />
		std::cerr &lt;&lt; &#8220;Cannot read path \&#8221;" &lt;&lt; mypath &lt;&lt; &#8220;\&#8221; : &#8220;&lt;&lt; e.what() &lt;&lt;&#8221;\n&#8221;;<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Every Flavour Beans &#187; C++ Boost Filesystem Library(Part II): Example Programs</title>
		<link>http://beans.seartipy.com/2006/05/10/boost-filesystem-library-writing-portable-c-programs-to-acess-the-filesystem/comment-page-1/#comment-21</link>
		<dc:creator>Every Flavour Beans &#187; C++ Boost Filesystem Library(Part II): Example Programs</dc:creator>
		<pubDate>Sun, 28 May 2006 14:29:50 +0000</pubDate>
		<guid isPermaLink="false">http://beans.seartipy.com/2006/05/10/boost-filesystem-library-writing-portable-c-programs-to-acess-the-filesystem/#comment-21</guid>
		<description>[...] Continuing from where I had left in my earlier post containing the basics of the C++ Boost Filesystem Library, below are some example programs that make use of some common facilities available in the Boost Filesystem Library. I assume that all the code snippets shown in this post are properly nested within the main() function apart from including the following things:  Show Plain Text C++: [...]</description>
		<content:encoded><![CDATA[<p>[...] Continuing from where I had left in my earlier post containing the basics of the C++ Boost Filesystem Library, below are some example programs that make use of some common facilities available in the Boost Filesystem Library. I assume that all the code snippets shown in this post are properly nested within the main() function apart from including the following things:  Show Plain Text C++: [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

