From: "mame (Yusuke Endoh)" Date: 2012-03-29T01:32:12+09:00 Subject: [ruby-core:43803] [ruby-trunk - Feature #5779][Assigned] Ruby-FTP - allow easy way to find out whether a remote target is a file or a directory Issue #5779 has been updated by mame (Yusuke Endoh). Status changed from Open to Assigned Assignee set to shugo (Shugo Maeda) Maeda-san, please take a look at this. -- Yusuke Endoh ---------------------------------------- Feature #5779: Ruby-FTP - allow easy way to find out whether a remote target is a file or a directory https://bugs.ruby-lang.org/issues/5779#change-25308 Author: shevegen (markus heiler) Status: Assigned Priority: Low Assignee: shugo (Shugo Maeda) Category: Target version: Hello. The FTP documentation of Ruby is at: http://www.ruby-doc.org/stdlib-1.9.3/libdoc/net/ftp/rdoc/index.html When you have a local file on your HDD, you can do this: File.directory? '/tmp' # => true File.file? '/etc/ld.so.conf' # => true I propose something like that to be added to the Ruby-FTP library too. So that a user can find out whether something is a file or a directory, without the need to download it, or parse the .list output manually. This is mostly for convenience. -- http://bugs.ruby-lang.org/