# Navigation through folders

**URL:** <https://www.ruby-forum.com/t/navigation-through-folders/145519>\
**Category:** Ruby\
**Created:** [August 11, 2008, 6:39am UTC](https://www.ruby-forum.com/t/navigation-through-folders/145519 "2008-08-11T06:39:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ganana\_srishti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e480ec/32.png) [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Post date:** [August 11, 2008, 6:39am UTC](https://www.ruby-forum.com/t/navigation-through-folders/145519/1 "2008-08-11T06:39:03Z")

</div>

Hi,  
I want to know is there any plugin for folder navigation… plz reply  
if anybody know’s solution

For eg:  
in window xp os if you click on folders all folder list it will  
display with “+” sign if yu click on “+” sign or folder it will display  
subfolders like wise…

Thanx in advance  
Pragash

---

<div class="post-metadata">

**Author:** ![ganana\_srishti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e480ec/32.png) [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Post date:** [August 11, 2008, 6:55am UTC](https://www.ruby-forum.com/t/navigation-through-folders/145519/2 "2008-08-11T06:55:37Z")

</div>

On Sunday 10 August 2008 23:36:46 Pragash Mr. wrote:

> I want to know is there any plugin for folder navigation… plz reply  
> if anybody know’s solution

Plugin to what? Ruby? Ruby doesn’t have plugins.

I think you want the Rails list.

---

<div class="post-metadata">

**Author:** ![ganana\_srishti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e480ec/32.png) [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Post date:** [August 11, 2008, 7:43am UTC](https://www.ruby-forum.com/t/navigation-through-folders/145519/3 "2008-08-11T07:43:33Z")

</div>

On 11.08.2008 06:52, David M. wrote:

> On Sunday 10 August 2008 23:36:46 Pragash Mr. wrote:
> 
> > I want to know is there any plugin for folder navigation… plz reply  
> > if anybody know’s solution
> 
> Plugin to what? Ruby? Ruby doesn’t have plugins.
> 
> I think you want the Rails list.

Just in case not: there is Find.find() which will enumerate all files  
and directories below a given directory.

Kind regards

robert

---

<div class="post-metadata">

**Author:** ![ganana\_srishti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e480ec/32.png) [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Post date:** [August 11, 2008, 8:18am UTC](https://www.ruby-forum.com/t/navigation-through-folders/145519/4 "2008-08-11T08:18:13Z")

</div>

David M. wrote:

> On Sunday 10 August 2008 23:36:46 Pragash Mr. wrote:
> 
> > I want to know is there any plugin for folder navigation… plz reply  
> > if anybody know’s solution
> 
> Plugin to what? Ruby? Ruby doesn’t have plugins.
> 
> I think you want the Rails list.

Yes i need for rails list

---

<div class="post-metadata">

**Author:** ![ganana\_srishti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e480ec/32.png) [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Post date:** [August 11, 2008, 2:24pm UTC](https://www.ruby-forum.com/t/navigation-through-folders/145519/5 "2008-08-11T14:24:08Z")

</div>

This will show (and sort) all files and subfolder (in current  
directory):

Dir.glob(’\*\*/\*’).sort.each { |entry| puts entry }

John.

---

<div class="post-metadata">

**Author:** ![ganana\_srishti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e480ec/32.png) [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Post date:** [August 11, 2008, 9:47am UTC](https://www.ruby-forum.com/t/navigation-through-folders/145519/6 "2008-08-11T09:47:34Z")

</div>

I dont know what excatly you need but I think the Dir class from ruby  
could  
help you.  
[http://www.ruby-doc.org/core/classes/Dir.html#M002327](http://www.ruby-doc.org/core/classes/Dir.html#M002327)  
The above is the documentation of how to use this particular dir class.  
cheers,  
kranthi.
