Actions
Feature #5779
closedRuby-FTP - allow easy way to find out whether a remote target is a file or a directory
[ruby-core:<unknown>]
Description
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.
Actions
Like0
Like0Like0Like0