<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>byteMyCode: Snippet Revisions</title>
		<link>http://www.bytemycode.com</link>
		<description>Revisions for this snippet.</description>
		<pubDate>Thu, 04 Dec 2008 16:40:44 +0000</pubDate>
		<copyright>1998-2008 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	
	<item>
		<title>Directory Utility 1</title>
		<link>http://www.bytemycode.com/snippets/snippet/94/1/</link>
		<comments>http://www.bytemycode.com/snippets/snippet/94/comments/</comments>
		<pubDate>Sat, 18 Feb 2006 12:02:49 +0000</pubDate>
		<dc:creator>seasons</dc:creator>
		<category>0, 1, Ruby</category>
		<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/94/</guid>
		<description>
			<![CDATA[
				<p>class Dir<br /><br />	def Dir.escape(path)<br />		path_new = []<br />		path.unpack("C*").map{ |n|<br />			# meta char<br />			if %q{"$&'()*/;<>?[\\`|}.include?(n)<br />				path_new.push(0x5C)	#=> ÂÂ<br />				path_new.push(n)	#=><br />			# â€šÂ»â€šÃªË ÃˆÅ O<br />			else<br />				path_new.push(n)<br />			end<br />		}<br />		path_new.pack("C*")<br />	end<br /><br />	#  getext<br />	def Dir.getExt( fullpath )<br />		len = fullpath.rindex('.')<br />		return "." if len==nil<br />		fullpath[ len , fullpath.length-len ]<br />	end<br /><br />	# change ext<br />	def Dir.subExt( filename , newext )<br />		return if filename.rindex('.')==nil<br />		newext = ('.'+newext) if newext[0]!='.'<br />		filename.sub!( /\..+/,newext )<br />	end<br /><br />end<br /></p>
			]]>
		</description>
	</item>

	
	<item>
		<title>Directory Utility 2</title>
		<link>http://www.bytemycode.com/snippets/snippet/94/2/</link>
		<comments>http://www.bytemycode.com/snippets/snippet/94/comments/</comments>
		<pubDate>Sat, 18 Feb 2006 13:42:44 +0000</pubDate>
		<dc:creator>seasons</dc:creator>
		<category>0, 1, Ruby</category>
		<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/94/</guid>
		<description>
			<![CDATA[
				<p>Directory Utility for Ruby</p>
			]]>
		</description>
	</item>

	
	<item>
		<title>Directory Utility 3</title>
		<link>http://www.bytemycode.com/snippets/snippet/94/3/</link>
		<comments>http://www.bytemycode.com/snippets/snippet/94/comments/</comments>
		<pubDate>Sat, 18 Feb 2006 13:46:15 +0000</pubDate>
		<dc:creator>seasons</dc:creator>
		<category>0, 1, Ruby</category>
		<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/94/</guid>
		<description>
			<![CDATA[
				<p>Directory Utility for Ruby</p>
			]]>
		</description>
	</item>

	
	</channel>
</rss>