Project

General

Profile

Actions

Feature #5779

closed

Ruby-FTP - allow easy way to find out whether a remote target is a file or a directory

Added by shevegen (Robert A. Heiler) over 12 years ago. Updated about 12 years ago.

Status:
Rejected
Target version:
-
[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

Also available in: Atom PDF

Like0
Like0Like0Like0