# Dir.glob problem

**URL:** <https://rubytalk.org/t/dir-glob-problem/57754>\
**Category:** ruby-talk\
**Created:** [12 March 2010 23:31 UTC](https://rubytalk.org/t/dir-glob-problem/57754 "2010-03-12T23:31:27Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Vlad](https://avatars.discourse-cdn.com/v4/letter/d/ecc23a/32.png) [@David\_Vlad](https://rubytalk.org/u/David_Vlad)\
**Post date:** [12 March 2010 23:31 UTC](https://rubytalk.org/t/dir-glob-problem/57754/1 "2010-03-12T23:31:27Z")

</div>

In the program Im making I need to read some wma files into a variable  
and I did like this:

songs = Dir.glob("C:\\Users\\Public\\Music\\Sample Music\\*.wma")

Note that this is NOT the wrong directory, I've copy pasted it from the  
map itself and also the files are wma and nothing else. My programming  
teacher has no idea why this dosnt work and the other ppl I've talked  
with dosnt know either. Most said something like "aside from a simple  
mistake like wrong directory/extension, I don't know what could be going  
wrong." So now this forum is my last resort, why on earth dosnt this  
work?!

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Eric\_Christopherson](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/eric_christopherson/32/1849_2.png) [@Eric\_Christopherson](https://rubytalk.org/u/Eric_Christopherson)\
**Post date:** [13 March 2010 00:00 UTC](https://rubytalk.org/t/dir-glob-problem/57754/2 "2010-03-13T00:00:02Z")

</div>

What goes wrong with it?

> **···**
>
> On Fri, Mar 12, 2010 at 5:31 PM, David Vlad \<cluny\_gisslaren@hotmail.com\> wrote:
> 
> > In the program Im making I need to read some wma files into a variable  
> > and I did like this:
> > 
> > songs = Dir.glob("C:\\Users\\Public\\Music\\Sample Music\\*.wma")
> > 
> > Note that this is NOT the wrong directory, I've copy pasted it from the  
> > map itself and also the files are wma and nothing else. My programming  
> > teacher has no idea why this dosnt work and the other ppl I've talked  
> > with dosnt know either. Most said something like "aside from a simple  
> > mistake like wrong directory/extension, I don't know what could be going  
> > wrong." So now this forum is my last resort, why on earth dosnt this  
> > work?!

---

<div class="post-metadata">

**Author:** ![Michael\_W\_Ryder2](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@Michael\_W\_Ryder2](https://rubytalk.org/u/Michael_W_Ryder2)\
**Post date:** [13 March 2010 00:25 UTC](https://rubytalk.org/t/dir-glob-problem/57754/3 "2010-03-13T00:25:16Z")

</div>

David Vlad wrote:

> In the program Im making I need to read some wma files into a variable  
> and I did like this:
> 
> songs = Dir.glob("C:\\Users\\Public\\Music\\Sample Music\\*.wma")
> 
> Note that this is NOT the wrong directory, I've copy pasted it from the  
> map itself and also the files are wma and nothing else. My programming  
> teacher has no idea why this dosnt work and the other ppl I've talked  
> with dosnt know either. Most said something like "aside from a simple  
> mistake like wrong directory/extension, I don't know what could be going  
> wrong." So now this forum is my last resort, why on earth dosnt this  
> work?!

The only way I could get it to work is to use the example at [class Dir - RDoc Documentation](http://ruby-doc.org/core/classes/Dir.html) and create a directory variable such as: lfiles=Files.join("C:", "Users", "Public", "Music", "Sample Music", "\*.wma") and then use a=Dir.glob(lfiles).  
The only problem with that approach is that the entire path is added to each file. I don't know if this is a concern or not.

---

<div class="post-metadata">

**Author:** ![Michael\_W\_Ryder2](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@Michael\_W\_Ryder2](https://rubytalk.org/u/Michael_W_Ryder2)\
**Post date:** [15 March 2010 19:00 UTC](https://rubytalk.org/t/dir-glob-problem/57754/4 "2010-03-15T19:00:12Z")

</div>

David Vlad wrote:

> In the program Im making I need to read some wma files into a variable  
> and I did like this:
> 
> songs = Dir.glob("C:\\Users\\Public\\Music\\Sample Music\\*.wma")
> 
> Note that this is NOT the wrong directory, I've copy pasted it from the  
> map itself and also the files are wma and nothing else. My programming  
> teacher has no idea why this dosnt work and the other ppl I've talked  
> with dosnt know either. Most said something like "aside from a simple  
> mistake like wrong directory/extension, I don't know what could be going  
> wrong." So now this forum is my last resort, why on earth dosnt this  
> work?!

Looking at the source code for Dir it looks like it should accept the above directory separators if the macro DOSISH is defined. Where is this defined? It looks like it is part of the build process so I would assume it would be defined if building for a Windows platform.

---

<div class="post-metadata">

**Author:** ![7stud2](https://avatars.discourse-cdn.com/v4/letter/7/9de053/32.png) [@7stud2](https://rubytalk.org/u/7stud2)\
**Post date:** [30 January 2013 14:23 UTC](https://rubytalk.org/t/dir-glob-problem/57754/5 "2013-01-30T14:23:34Z")

</div>

Dir.glob('\*.\*') gives you all the files in the current directory. You  
can put different paths / extensions on as you like.

Documentation and loads of examples here:  
[http://www.ruby-doc.org/core-1.9.3/Dir.html#method-c-glob](http://www.ruby-doc.org/core-1.9.3/Dir.html#method-c-glob)

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![7stud2](https://avatars.discourse-cdn.com/v4/letter/7/9de053/32.png) [@7stud2](https://rubytalk.org/u/7stud2)\
**Post date:** [30 January 2013 14:41 UTC](https://rubytalk.org/t/dir-glob-problem/57754/6 "2013-01-30T14:41:10Z")

</div>

Dir.glob("C:/Documents and Settings/prayer/My Documents/userdata/\*\*.\*")

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![7stud2](https://avatars.discourse-cdn.com/v4/letter/7/9de053/32.png) [@7stud2](https://rubytalk.org/u/7stud2)\
**Post date:** [31 January 2013 08:48 UTC](https://rubytalk.org/t/dir-glob-problem/57754/7 "2013-01-31T08:48:20Z")

</div>

The asterisks are important: \*\*/\*

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![7stud2](https://avatars.discourse-cdn.com/v4/letter/7/9de053/32.png) [@7stud2](https://rubytalk.org/u/7stud2)\
**Post date:** [31 January 2013 09:04 UTC](https://rubytalk.org/t/dir-glob-problem/57754/8 "2013-01-31T09:04:47Z")

</div>

Glob without any wildcards just gives you back what you sent.

irb(main):001:0\> Dir.glob 'C:/'  
=\> ["C:/"]

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Michael\_W\_Ryder2](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@Michael\_W\_Ryder2](https://rubytalk.org/u/Michael_W_Ryder2)\
**Post date:** [13 March 2010 00:45 UTC](https://rubytalk.org/t/dir-glob-problem/57754/9 "2010-03-13T00:45:06Z")

</div>

Michael W Ryder wrote:

> David Vlad wrote:
> 
> > In the program Im making I need to read some wma files into a variable  
> > and I did like this:
> > 
> > songs = Dir.glob("C:\\Users\\Public\\Music\\Sample Music\\*.wma")
> > 
> > Note that this is NOT the wrong directory, I've copy pasted it from the  
> > map itself and also the files are wma and nothing else. My programming  
> > teacher has no idea why this dosnt work and the other ppl I've talked  
> > with dosnt know either. Most said something like "aside from a simple  
> > mistake like wrong directory/extension, I don't know what could be going  
> > wrong." So now this forum is my last resort, why on earth dosnt this  
> > work?!
> 
> The only way I could get it to work is to use the example at [class Dir - RDoc Documentation](http://ruby-doc.org/core/classes/Dir.html) and create a directory variable such as: lfiles=Files.join("C:", "Users", "Public", "Music", "Sample Music", "\*.wma") and then use a=Dir.glob(lfiles).  
> The only problem with that approach is that the entire path is added to each file. I don't know if this is a concern or not.

Further experimenting found two other solutions. The first is to use:  
a=Dir.glob("C:/Users/Public/Music/Sample Music/\*.wma") which has the same "problem" as my first solution.  
A better solution may be to use Dir.chdir to change to the directory and then use Dir.glob to extract the file names. This has the advantage of not including the path in front of each file name.

---

<div class="post-metadata">

**Author:** ![Michael\_W\_Ryder2](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@Michael\_W\_Ryder2](https://rubytalk.org/u/Michael_W_Ryder2)\
**Post date:** [13 March 2010 00:45 UTC](https://rubytalk.org/t/dir-glob-problem/57754/10 "2010-03-13T00:45:08Z")

</div>

Michael W Ryder wrote:

> David Vlad wrote:
> 
> > In the program Im making I need to read some wma files into a variable  
> > and I did like this:
> > 
> > songs = Dir.glob("C:\\Users\\Public\\Music\\Sample Music\\*.wma")
> > 
> > Note that this is NOT the wrong directory, I've copy pasted it from the  
> > map itself and also the files are wma and nothing else. My programming  
> > teacher has no idea why this dosnt work and the other ppl I've talked  
> > with dosnt know either. Most said something like "aside from a simple  
> > mistake like wrong directory/extension, I don't know what could be going  
> > wrong." So now this forum is my last resort, why on earth dosnt this  
> > work?!
> 
> The only way I could get it to work is to use the example at [class Dir - RDoc Documentation](http://ruby-doc.org/core/classes/Dir.html) and create a directory variable such as: lfiles=Files.join("C:", "Users", "Public", "Music", "Sample Music", "\*.wma") and then use a=Dir.glob(lfiles).  
> The only problem with that approach is that the entire path is added to each file. I don't know if this is a concern or not.

Further experimenting found two other solutions. The first is to use:  
a=Dir.glob("C:/Users/Public/Music/Sample Music/\*.wma") which has the same "problem" as my first solution.  
A better solution may be to use Dir.chdir to change to the directory and then use Dir.glob to extract the file names. This has the advantage of not including the path in front of each file name.

---

<div class="post-metadata">

**Author:** ![7stud2](https://avatars.discourse-cdn.com/v4/letter/7/9de053/32.png) [@7stud2](https://rubytalk.org/u/7stud2)\
**Post date:** [30 January 2013 14:11 UTC](https://rubytalk.org/t/dir-glob-problem/57754/11 "2013-01-30T14:11:38Z")

</div>

Michael W Ryder wrote in post #896942:

> David Vlad wrote:
> 
> > wrong." So now this forum is my last resort, why on earth dosnt this  
> > work?!
> 
> Looking at the source code for Dir it looks like it should accept the  
> above directory separators if the macro DOSISH is defined. Where is  
> this defined? It looks like it is part of the build process so I would  
> assume it would be defined if building for a Windows platform.

To avoid "." and "." how to use the Dir::glob() method? Give me an  
example.

Please

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![7stud2](https://avatars.discourse-cdn.com/v4/letter/7/9de053/32.png) [@7stud2](https://rubytalk.org/u/7stud2)\
**Post date:** [31 January 2013 08:34 UTC](https://rubytalk.org/t/dir-glob-problem/57754/12 "2013-01-31T08:34:16Z")

</div>

Joel Pearson wrote in post #1094372:

> Dir.glob("C:/Documents and Settings/prayer/My Documents/userdata/\*\*/\*")

Hi, there is a confusion with Dir::glob method:

irb(main):001:0\>Dir.glob('C:/Documents and Settings/peter/My  
Documents/userdata/Test/')  
=\> ["C:/Documents and Settings/peter/My Documents/userdata/Test/"]

But the 'Test' folder also have another folder like "aaa". why it is not  
appearing in the output?

Thanks

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![7stud2](https://avatars.discourse-cdn.com/v4/letter/7/9de053/32.png) [@7stud2](https://rubytalk.org/u/7stud2)\
**Post date:** [31 January 2013 09:00 UTC](https://rubytalk.org/t/dir-glob-problem/57754/13 "2013-01-31T09:00:54Z")

</div>

Joel Pearson wrote in post #1094511:

> The asterisks are important: \*\*/\*

Yeah,I am with you. But what the difference is between "glob" without  
\*\*/\* and "glob" with \*\*/\*?

Need to understand the basic.

Thanks

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Joel\_VanderWerf](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Joel\_VanderWerf](https://rubytalk.org/u/Joel_VanderWerf)\
**Post date:** [13 March 2010 01:28 UTC](https://rubytalk.org/t/dir-glob-problem/57754/14 "2010-03-13T01:28:26Z")

</div>

Michael W Ryder wrote:

> Michael W Ryder wrote:
> 
> > David Vlad wrote:
> > 
> > > In the program Im making I need to read some wma files into a variable  
> > > and I did like this:
> > > 
> > > songs = Dir.glob("C:\\Users\\Public\\Music\\Sample Music\\*.wma")
> > > 
> > > Note that this is NOT the wrong directory, I've copy pasted it from the  
> > > map itself and also the files are wma and nothing else. My programming  
> > > teacher has no idea why this dosnt work and the other ppl I've talked  
> > > with dosnt know either. Most said something like "aside from a simple  
> > > mistake like wrong directory/extension, I don't know what could be going  
> > > wrong." So now this forum is my last resort, why on earth dosnt this  
> > > work?!
> > 
> > The only way I could get it to work is to use the example at [class Dir - RDoc Documentation](http://ruby-doc.org/core/classes/Dir.html) and create a directory variable such as: lfiles=Files.join("C:", "Users", "Public", "Music", "Sample Music", "\*.wma") and then use a=Dir.glob(lfiles).  
> > The only problem with that approach is that the entire path is added to each file. I don't know if this is a concern or not.
> 
> Further experimenting found two other solutions. The first is to use:  
> a=Dir.glob("C:/Users/Public/Music/Sample Music/\*.wma") which has the same "problem" as my first solution.  
> A better solution may be to use Dir.chdir to change to the directory and then use Dir.glob to extract the file names. This has the advantage of not including the path in front of each file name.

chdir is not thread safe, it changes the pwd which is global to the process. Here's an alternative:

d = Dir.new("/tmp") # use fwd slashes even on windows  
d.grep(/\.wma$/)

This should give you an array of filenames in the dir.

---

<div class="post-metadata">

**Author:** ![Robert\_K1](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/robert_k1/32/1830_2.png) [@Robert\_K1](https://rubytalk.org/u/Robert_K1)\
**Post date:** [13 March 2010 09:55 UTC](https://rubytalk.org/t/dir-glob-problem/57754/15 "2010-03-13T09:55:07Z")

</div>

You can use Dir.entries for that:

Dir.new("C:/Users/Public/Music/Sample Music").entries.grep /\.wma\z/i

Kind regards

&nbsp;&nbsp;robert

> **···**
>
> On 03/13/2010 01:40 AM, Michael W Ryder wrote:
> 
> > Michael W Ryder wrote:
> > 
> > > David Vlad wrote:
> > > 
> > > > In the program Im making I need to read some wma files into a variable  
> > > > and I did like this:
> > > > 
> > > > songs = Dir.glob("C:\\Users\\Public\\Music\\Sample Music\\*.wma")
> > > > 
> > > > Note that this is NOT the wrong directory, I've copy pasted it from the  
> > > > map itself and also the files are wma and nothing else. My programming  
> > > > teacher has no idea why this dosnt work and the other ppl I've talked  
> > > > with dosnt know either. Most said something like "aside from a simple  
> > > > mistake like wrong directory/extension, I don't know what could be going  
> > > > wrong." So now this forum is my last resort, why on earth dosnt this  
> > > > work?!
> > > 
> > > The only way I could get it to work is to use the example at [class Dir - RDoc Documentation](http://ruby-doc.org/core/classes/Dir.html) and create a directory variable such as: lfiles=Files.join("C:", "Users", "Public", "Music", "Sample Music", "\*.wma") and then use a=Dir.glob(lfiles).  
> > > The only problem with that approach is that the entire path is added to each file. I don't know if this is a concern or not.
> > 
> > Further experimenting found two other solutions. The first is to use:  
> > a=Dir.glob("C:/Users/Public/Music/Sample Music/\*.wma") which has the same "problem" as my first solution.  
> > A better solution may be to use Dir.chdir to change to the directory and then use Dir.glob to extract the file names. This has the advantage of not including the path in front of each file name.
> 
> --  
> remember.guy do |as, often| as.you\_can - without end  
> [http://blog.rubybestpractices.com/](http://blog.rubybestpractices.com/)

---

<div class="post-metadata">

**Author:** ![Michel](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@Michel](https://rubytalk.org/u/Michel)\
**Post date:** [30 January 2013 14:24 UTC](https://rubytalk.org/t/dir-glob-problem/57754/16 "2013-01-30T14:24:41Z")

</div>

For example : To process only the files in the directory and in its  
sub-directories :

Dir.glob("\*\*/\*") {|x|  
&nbsp;&nbsp;if File.directory?(x) then # it's a directory  
&nbsp;&nbsp;else # It's a file ...  
}

> **···**
>
> > Michael W Ryder wrote in post #896942:  
> > \> David Vlad wrote:  
> > \>\> wrong." So now this forum is my last resort, why on earth dosnt this  
> > \>\> work?!  
> > \>  
> > \> Looking at the source code for Dir it looks like it should accept the  
> > \> above directory separators if the macro DOSISH is defined. Where is  
> > \> this defined? It looks like it is part of the build process so I would  
> > \> assume it would be defined if building for a Windows platform.
> > 
> > To avoid "." and "." how to use the Dir::glob() method? Give me an  
> > example.
> > 
> > Please

---

<div class="post-metadata">

**Author:** ![stomar](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@stomar](https://rubytalk.org/u/stomar)\
**Post date:** [1 February 2013 06:06 UTC](https://rubytalk.org/t/dir-glob-problem/57754/17 "2013-02-01T06:06:19Z")

</div>

The asterisks are explained in the documentation,  
there are also examples.

BTW, most "basic" questions can be answered by looking  
into the docs or by a quick internet search.

Google: "ruby glob"

1. Class: Dir (Ruby 1.9.3)  
&nbsp;&nbsp;&nbsp;&nbsp;[Official Docs]  
2. Using Glob with Directories - Ruby - About.com  
&nbsp;&nbsp;&nbsp;&nbsp;[an article that explains Dir.glob]  
3. ...  
&nbsp;&nbsp;&nbsp;&nbsp;...

That's usually much faster than posting a question.

> **···**
>
> Am 31.01.2013 10:00, schrieb Arup Rakshit:
> 
> > Joel Pearson wrote in post #1094511:
> > 
> > > The asterisks are important: \*\*/\*
> > 
> > Yeah,I am with you. But what the difference is between "glob" without  
> > \*\*/\* and "glob" with \*\*/\*?
> > 
> > Need to understand the basic.
> 
> --  
> \<[https://github.com/stomar/&gt](https://github.com/stomar/&gt);

---

<div class="post-metadata">

**Author:** ![Michael\_W\_Ryder2](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@Michael\_W\_Ryder2](https://rubytalk.org/u/Michael_W_Ryder2)\
**Post date:** [13 March 2010 02:20 UTC](https://rubytalk.org/t/dir-glob-problem/57754/18 "2010-03-13T02:20:05Z")

</div>

Joel VanderWerf wrote:

> Michael W Ryder wrote:
> 
> > Michael W Ryder wrote:
> > 
> > > David Vlad wrote:
> > > 
> > > > In the program Im making I need to read some wma files into a variable  
> > > > and I did like this:
> > > > 
> > > > songs = Dir.glob("C:\\Users\\Public\\Music\\Sample Music\\*.wma")
> > > > 
> > > > Note that this is NOT the wrong directory, I've copy pasted it from the  
> > > > map itself and also the files are wma and nothing else. My programming  
> > > > teacher has no idea why this dosnt work and the other ppl I've talked  
> > > > with dosnt know either. Most said something like "aside from a simple  
> > > > mistake like wrong directory/extension, I don't know what could be going  
> > > > wrong." So now this forum is my last resort, why on earth dosnt this  
> > > > work?!
> > > 
> > > The only way I could get it to work is to use the example at [class Dir - RDoc Documentation](http://ruby-doc.org/core/classes/Dir.html) and create a directory variable such as: lfiles=Files.join("C:", "Users", "Public", "Music", "Sample Music", "\*.wma") and then use a=Dir.glob(lfiles).  
> > > The only problem with that approach is that the entire path is added to each file. I don't know if this is a concern or not.
> > 
> > Further experimenting found two other solutions. The first is to use:  
> > a=Dir.glob("C:/Users/Public/Music/Sample Music/\*.wma") which has the same "problem" as my first solution.  
> > A better solution may be to use Dir.chdir to change to the directory and then use Dir.glob to extract the file names. This has the advantage of not including the path in front of each file name.
> 
> chdir is not thread safe, it changes the pwd which is global to the process. Here's an alternative:
> 
> d = Dir.new("/tmp") # use fwd slashes even on windows  
> d.grep(/\.wma$/)
> 
> This should give you an array of filenames in the dir.

Is there a way to expand this to include subdirectories like .glob allows? .grep doesn't appear to work on the string created by File.join.

---

<div class="post-metadata">

**Author:** ![7stud2](https://avatars.discourse-cdn.com/v4/letter/7/9de053/32.png) [@7stud2](https://rubytalk.org/u/7stud2)\
**Post date:** [30 January 2013 14:29 UTC](https://rubytalk.org/t/dir-glob-problem/57754/19 "2013-01-30T14:29:00Z")

</div>

Michel wrote in post #1094364:

> For example : To process only the files in the directory and in its  
> sub-directories :
> 
> Dir.glob("\*\*/\*") {|x|  
> &nbsp;&nbsp;if File.directory?(x) then # it's a directory  
> &nbsp;&nbsp;else # It's a file ...  
> }

Yes But if I want to perform such search,on the directory say -  
"C:\Documents and Settings\prayer\My Documents\userdata" . Then how to  
pass it to the Glob() method?

Thanks

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Tamara\_Temple1](https://avatars.discourse-cdn.com/v4/letter/t/5f9b8f/32.png) [@Tamara\_Temple1](https://rubytalk.org/u/Tamara_Temple1)\
**Post date:** [2 February 2013 04:10 UTC](https://rubytalk.org/t/dir-glob-problem/57754/20 "2013-02-02T04:10:05Z")

</div>

Part of the confusion may be what "glob" is doing. "glob" is a term  
inherited from \*nix shells, which often have some terse, strange terms  
for things. While Dir.glob inherits some of the conventions, it also  
expands on them. The basic premise, however, remains the same: return  
things that match what I give, substituting where wild cards are  
placed.

[Next page](https://rubytalk.org/t/dir-glob-problem/57754.md?page=2)
