# Net::FTP and ftp.dir()

**URL:** <https://www.ruby-forum.com/t/net-ftp-and-ftp-dir/109564>\
**Category:** Ruby\
**Created:** [July 16, 2007, 10:09pm UTC](https://www.ruby-forum.com/t/net-ftp-and-ftp-dir/109564 "2007-07-16T22:09:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ari\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Post date:** [July 16, 2007, 10:09pm UTC](https://www.ruby-forum.com/t/net-ftp-and-ftp-dir/109564/1 "2007-07-16T22:09:08Z")

</div>

Hey all,  
I’m having trouble with Net::FTP’s dir command. I’m looking to get a  
list of all the directories, but instead I get a list of every file  
IN every directory, and the permissions and timestamps as well. Is  
there any way to fix this? What method SHOULD I use to get a list of  
all of the directories?

Thanks,  
-------------------------------------------------------|  
~ Ari  
crap my sig won’t fit
