<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>steffler's archive &#187; snippet</title>
	<atom:link href="http://steffler.info/tag/snippet/feed/" rel="self" type="application/rss+xml" />
	<link>http://steffler.info</link>
	<description>bits of code i wrote and stuff about things and such.</description>
	<lastBuildDate>Tue, 18 May 2010 00:50:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Python Code Snippet: Send a file to an FTP server</title>
		<link>http://steffler.info/python-code-snippet-send-a-file-to-an-ftp-server/</link>
		<comments>http://steffler.info/python-code-snippet-send-a-file-to-an-ftp-server/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 00:31:03 +0000</pubDate>
		<dc:creator>steffler</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://steffler.info/?p=26</guid>
		<description><![CDATA[Here is a snippet of code I put together to take a file and upload it via FTP to a remote site.]]></description>
			<content:encoded><![CDATA[<p>Here is a snippet of code I put together to take a file and upload it via FTP to a remote site.</p>
<pre>import ftplib
# connect to the server
ftpsite = ftplib.FTP('ftpserver.address.com','FTPUSER','FTPPASSWD')
file = open('FileName.txt','rb')                # file to send
ftpsite.storbinary('STOR FileName.txt', file)   # send the file
file.close()                                    # close file and FTP
ftpsite.quit()</pre>
<p>There are a crapload of similar code snippets available here:  <a href="http://sebsauvage.net/python/snyppets/" target="_blank">Seb Sauvage&#8217;s Python Snyppets</a>.  Thanks for putting all of these online, Seb! </p>
]]></content:encoded>
			<wfw:commentRss>http://steffler.info/python-code-snippet-send-a-file-to-an-ftp-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

