<?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"
	>
<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>
	<pubDate>Sun, 07 Sep 2008 19:53:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<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-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-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&#60;&#60;p.leaf()&#60;&#60;" is a regular file.\n";
//-------------

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 &#60;&#60; mypath &#60;&#60; " is a directory" &#60;&#60; std::endl;
		}
		else if (fs::is_regular(mypath)){ //is it a regular file
			std::cerr &#60;&#60; mypath &#60;&#60; " is a regular file" &#60;&#60; std::endl;
		}
		else if (fs::is_symlink(mypath)){ //is it a symbolic link?
			std::cerr &#60;&#60; mypath &#60;&#60; " is a symlink" &#60;&#60; std::endl;
		}
		else if (fs::is_other(mypath)){	//its something else...
			std::cerr &#60;&#60; mypath &#60;&#60; " is an unknown filesystem entity" &#60;&#60; std::endl;
		}
		else{} // should theoretically be equivalent to fs::is_other() branch above.
	}catch(fs::basic_filesystem_error e){
		std::cerr &#60;&#60; "Cannot read path \"" &#60;&#60; mypath &#60;&#60; "\" : "&#60;&#60; e.what() &#60;&#60;"\n";
	}
}</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-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>
