<?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: create a directory in python</title>
	<atom:link href="http://desk.stinkpot.org/tricks/index.php/2006/07/create-a-directory-in-python/feed/" rel="self" type="application/rss+xml" />
	<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/07/create-a-directory-in-python/</link>
	<description>tricks!</description>
	<lastBuildDate>Thu, 02 Feb 2012 20:46:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: Shruti</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/07/create-a-directory-in-python/comment-page-1/#comment-22888</link>
		<dc:creator>Shruti</dc:creator>
		<pubDate>Thu, 22 Sep 2011 18:54:17 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/?p=68#comment-22888</guid>
		<description>Cool Story Bro! super cool banner!</description>
		<content:encoded><![CDATA[<p>Cool Story Bro! super cool banner!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saurabh</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/07/create-a-directory-in-python/comment-page-1/#comment-22231</link>
		<dc:creator>Saurabh</dc:creator>
		<pubDate>Thu, 28 Jul 2011 14:03:25 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/?p=68#comment-22231</guid>
		<description>can you guide me how to create a Remote Directory  ?</description>
		<content:encoded><![CDATA[<p>can you guide me how to create a Remote Directory  ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saurabh</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/07/create-a-directory-in-python/comment-page-1/#comment-22230</link>
		<dc:creator>Saurabh</dc:creator>
		<pubDate>Thu, 28 Jul 2011 14:01:22 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/?p=68#comment-22230</guid>
		<description>this is simply.
exactly what i was looking for.</description>
		<content:encoded><![CDATA[<p>this is simply.<br />
exactly what i was looking for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Caleb Barr</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/07/create-a-directory-in-python/comment-page-1/#comment-12230</link>
		<dc:creator>Caleb Barr</dc:creator>
		<pubDate>Sat, 02 Oct 2010 22:05:14 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/?p=68#comment-12230</guid>
		<description>Thanks!  Very cool banner on the top of your blog, too!</description>
		<content:encoded><![CDATA[<p>Thanks!  Very cool banner on the top of your blog, too!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nikunj</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/07/create-a-directory-in-python/comment-page-1/#comment-11753</link>
		<dc:creator>nikunj</dc:creator>
		<pubDate>Fri, 22 Jan 2010 10:00:13 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/?p=68#comment-11753</guid>
		<description>Hey, Many thnx for this useful post..!!</description>
		<content:encoded><![CDATA[<p>Hey, Many thnx for this useful post..!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/07/create-a-directory-in-python/comment-page-1/#comment-11741</link>
		<dc:creator>Graham</dc:creator>
		<pubDate>Sun, 17 Jan 2010 16:51:30 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/?p=68#comment-11741</guid>
		<description>Thanks exactly what I was looking for. Modified Matthew&#039;s code slightly to incorporate recursive directory creation.

#code
import os;

dirname = &quot;mydir&quot;
if not os.path.isdir(os.path.join(os.getcwd(), dirname)):
	os.makedirs(os.path.join(os.getcwd(), dirname))
print os.getcwd()</description>
		<content:encoded><![CDATA[<p>Thanks exactly what I was looking for. Modified Matthew&#8217;s code slightly to incorporate recursive directory creation.</p>
<p>#code<br />
import os;</p>
<p>dirname = &#8220;mydir&#8221;<br />
if not os.path.isdir(os.path.join(os.getcwd(), dirname)):<br />
	os.makedirs(os.path.join(os.getcwd(), dirname))<br />
print os.getcwd()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/07/create-a-directory-in-python/comment-page-1/#comment-11496</link>
		<dc:creator>Matthew</dc:creator>
		<pubDate>Mon, 14 Sep 2009 03:00:39 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/?p=68#comment-11496</guid>
		<description>This also works on Windows unchanged, but like it better like this:

[code]
dirname = &quot;my_dir_name&quot;
if not os.path.isdir(os.path.join(os.getcwd(), dirname)):
    os.mkdir(os.path.join(os.getcwd(), dirname))
[/code]

My $0.02.  Nice site BTW.</description>
		<content:encoded><![CDATA[<p>This also works on Windows unchanged, but like it better like this:</p>
<p>[code]<br />
dirname = "my_dir_name"<br />
if not os.path.isdir(os.path.join(os.getcwd(), dirname)):<br />
    os.mkdir(os.path.join(os.getcwd(), dirname))<br />
[/code]</p>
<p>My $0.02.  Nice site BTW.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NT</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/07/create-a-directory-in-python/comment-page-1/#comment-11476</link>
		<dc:creator>NT</dc:creator>
		<pubDate>Wed, 02 Sep 2009 12:22:21 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/?p=68#comment-11476</guid>
		<description>Nearly 18 months on I have to echo the first commenter&#039;s thoughts - totally cool header.</description>
		<content:encoded><![CDATA[<p>Nearly 18 months on I have to echo the first commenter&#8217;s thoughts &#8211; totally cool header.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aman Aggarwal</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/07/create-a-directory-in-python/comment-page-1/#comment-11365</link>
		<dc:creator>Aman Aggarwal</dc:creator>
		<pubDate>Fri, 31 Jul 2009 00:02:04 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/?p=68#comment-11365</guid>
		<description>Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Wendelin</title>
		<link>http://desk.stinkpot.org:8080/tricks/index.php/2006/07/create-a-directory-in-python/comment-page-1/#comment-11176</link>
		<dc:creator>Eric Wendelin</dc:creator>
		<pubDate>Fri, 15 May 2009 15:13:26 +0000</pubDate>
		<guid isPermaLink="false">http://stinkpot.afraid.org:8080/tricks/?p=68#comment-11176</guid>
		<description>Thanks a bunch, this is exactly what I was looking for. :)</description>
		<content:encoded><![CDATA[<p>Thanks a bunch, this is exactly what I was looking for. <img src='http://desk.stinkpot.org:8080/tricks/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

