<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: dirs code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Wed, 08 Oct 2008 04:27:10 GMT</pubDate>
    <description>DZone Snippets: dirs code</description>
    <item>
      <title>Get all sub-directories</title>
      <link>http://snippets.dzone.com/posts/show/1266</link>
      <description>&lt;code&gt;&lt;br /&gt;    dirs: func [&lt;br /&gt;        {Returns a block of fully qualified subdirectories for the directory.}&lt;br /&gt;        spec  [file!]   "Starting directory"&lt;br /&gt;        block [block!]  "Block to append to"&lt;br /&gt;        /deep           "Recurse sub-directories."&lt;br /&gt;        /local f-spec&lt;br /&gt;    ][&lt;br /&gt;        spec: dirize spec&lt;br /&gt;        foreach file read spec [&lt;br /&gt;            if dir? f-spec: join spec file [&lt;br /&gt;                append block f-spec&lt;br /&gt;                if deep [all-dirs/deep f-spec block]&lt;br /&gt;            ]&lt;br /&gt;        ]&lt;br /&gt;        block&lt;br /&gt;    ]&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Mon, 23 Jan 2006 01:55:00 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1266</guid>
      <author>gregg.irwin (Gregg Irwin)</author>
    </item>
  </channel>
</rss>
