<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Wanted: eglob.py</title>
	<link>http://lesscode.org/2005/07/01/enhanced-glob-wanted/</link>
	<description>AAaaaaahhhhrrrrrrr!</description>
	<pubDate>Mon, 17 Sep 2007 09:13:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.1</generator>

	<item>
		<title>by: Kent Johnson</title>
		<link>http://lesscode.org/2005/07/01/enhanced-glob-wanted/#comment-30</link>
		<pubDate>Tue, 12 Jul 2005 02:16:47 +0000</pubDate>
		<guid>http://lesscode.org/2005/07/01/enhanced-glob-wanted/#comment-30</guid>
					<description>&lt;p&gt;Jason Orendorff's path module can do mucho of this. It will recursively walk dirs filtering on an fnmatch and optionally isfile or isdir.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;eglob.find(re.compile(r'^/tmp/.*')) might be
path.path('/tmp').walk() depending on what you really mean by the re.&lt;/p&gt;

&lt;p&gt;eglob.find('/home/*', directories=1) is
path.path('/home').dirs()&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Kent&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Jason Orendorff&#8217;s path module can do mucho of this. It will recursively walk dirs filtering on an fnmatch and optionally isfile or isdir.</p>
</p>
<p>eglob.find(re.compile(r&#8217;^/tmp/.*&#8217;)) might be<br />
path.path(&#8217;/tmp&#8217;).walk() depending on what you really mean by the re.</p>
<p>eglob.find(&#8217;/home/*&#8217;, directories=1) is<br />
path.path(&#8217;/home&#8217;).dirs()</p>
</p>
<p>Kent</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Ian Bicking</title>
		<link>http://lesscode.org/2005/07/01/enhanced-glob-wanted/#comment-9</link>
		<pubDate>Thu, 07 Jul 2005 17:51:15 +0000</pubDate>
		<guid>http://lesscode.org/2005/07/01/enhanced-glob-wanted/#comment-9</guid>
					<description>&lt;p&gt;py.path (in the py lib) has several options for recursing files with matchers.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>py.path (in the py lib) has several options for recursing files with matchers.</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Ryan Tomayko</title>
		<link>http://lesscode.org/2005/07/01/enhanced-glob-wanted/#comment-8</link>
		<pubDate>Thu, 07 Jul 2005 17:14:07 +0000</pubDate>
		<guid>http://lesscode.org/2005/07/01/enhanced-glob-wanted/#comment-8</guid>
					<description>&lt;p&gt;Dang, the CSS for these comments is stupid. I'm going to have to take a look at that.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Dang, the CSS for these comments is stupid. I&#8217;m going to have to take a look at that.</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Ryan Tomayko</title>
		<link>http://lesscode.org/2005/07/01/enhanced-glob-wanted/#comment-7</link>
		<pubDate>Thu, 07 Jul 2005 17:11:53 +0000</pubDate>
		<guid>http://lesscode.org/2005/07/01/enhanced-glob-wanted/#comment-7</guid>
					<description>&lt;p&gt;Nice to see you here, Simon. I hope your not in harms way over there with all the chaos. :)&lt;/p&gt;

&lt;p&gt;That's a good point. I had thought of &quot;**/.cvsignore&quot; as being rooted from the current directory. &quot;/**/.cvsignore&quot; would be bad though.&lt;/p&gt;

&lt;p&gt;btw, the first place I saw the syntax was in the python based rdiff-backup and I instantly liked it:&lt;/p&gt;

&lt;p&gt;http://rdiff-backup.stanford.edu/rdiff-backup.1.html#sect7&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Nice to see you here, Simon. I hope your not in harms way over there with all the chaos. :)</p>
<p>That&#8217;s a good point. I had thought of &#8220;**/.cvsignore&#8221; as being rooted from the current directory. &#8220;/**/.cvsignore&#8221; would be bad though.</p>
<p>btw, the first place I saw the syntax was in the python based rdiff-backup and I instantly liked it:</p>
<p>http://rdiff-backup.stanford.edu/rdiff-backup.1.html#sect7</p>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Simon Willison</title>
		<link>http://lesscode.org/2005/07/01/enhanced-glob-wanted/#comment-6</link>
		<pubDate>Thu, 07 Jul 2005 16:33:41 +0000</pubDate>
		<guid>http://lesscode.org/2005/07/01/enhanced-glob-wanted/#comment-6</guid>
					<description>&lt;p&gt;Markdown broke my comment. Here it is again.&lt;/p&gt;

&lt;p&gt;I don't quite understand how the &quot;**/.cvsignore&quot; and &quot;re.compile(r'^/tmp/.*')&quot; examples would work. Wouldn't you have to scan every single path on the whole system (the equivalent of running &quot;find /&quot;) and then filter each one? At least with &quot;/etc/**&quot; you only have to scan a single directory, albeit recurisvely. Am I missing something?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Markdown broke my comment. Here it is again.</p>
<p>I don&#8217;t quite understand how the &#8220;**/.cvsignore&#8221; and &#8220;re.compile(r&#8217;^/tmp/.*&#8217;)&#8221; examples would work. Wouldn&#8217;t you have to scan every single path on the whole system (the equivalent of running &#8220;find /&#8221;) and then filter each one? At least with &#8220;/etc/**&#8221; you only have to scan a single directory, albeit recurisvely. Am I missing something?</p>
]]></content:encoded>
				</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.431 seconds -->
<!-- Cached page served by WP-Cache -->
