Ruby 2.6.0 リファレンスマニュアル > ライブラリ一覧 > net/ftpライブラリ > Net::FTP::MLSxEntryクラス

class Net::FTP::MLSxEntry

クラス・モジュールの継承リスト: Net::FTP::MLSxEntry < Object < Kernel < BasicObject

要約

Net::FTP#mlsdNet::FTP#mlst の結果を保持するクラスです。

Notes

このクラスのオブジェクトが保持している permission の情報 (Net::FTP::MLSxEntry#deletable? など)は対応するコマンド(Net::FTP#delete など)が常にうまくいくことを保証するものではありません。例えばディスクの空き容量が不足しているというような理由でうまくいかない場合があります。

インスタンスメソッド

定義 説明
appendable? -> bool

エントリが追記可能であれば true を返します。

charset -> String|nil

エンコーディング情報を返します。

creatable? -> bool

ディレクトリにファイルが作成可能であれば true を返します。

create -> Time|nil

エントリの作成時刻を返します。

deletable? -> bool

エントリが削除可能であれば true を返します。

directory? -> bool

エントリがディレクトリであれば true を返します。

directory_makable? -> bool

ディレクトリを作成可能ならば true を返します。

enterable? -> bool

エントリの中に入れるならば true を返します。

facts -> { String => String|Integer|Time }

そのエントリの「facts」を返します。

file? -> bool

エントリの種類がファイルであれば true を返します。

lang -> String|nil

言語情報を返します。

listable? -> bool

ディレクトリの内容一覧を得ることが可能ならば true を返します。

media_type -> String|nil

メディアタイプを返します。

modify -> Time|nil

エントリの変更時刻を返します。

pathname -> String

パス名を返します。

perm -> String|nil

パーミッション文字列を返します。

purgeable? -> bool

ディレクトリの内容を削除可能であるならば true を返します。

readable? -> bool

内容が読み出せるなら true を返します。

renamable? -> bool

名前が変更可能であれば true を返します。

size -> Integer|nil

エントリのサイズを返します。

type -> String|nil

エントリの種類を返します。

unique -> String|nil

ユニークIDを返します。

writable? -> bool

ファイルに書き込めるなら true を返します。

継承したメソッド

! != __id__ __send__ instance_eval instance_exec method_missing singleton_method_added singleton_method_removed singleton_method_undefined !~ <=> == === =~ _dump class clone define_singleton_method display enum_for eql? equal? extend freeze frozen? hash initialize initialize_copy inspect instance_of? instance_variable_defined? instance_variable_get instance_variable_set instance_variables is_a? itself marshal_dump marshal_load method methods nil? object_id pretty_inspect pretty_print pretty_print_cycle pretty_print_inspect pretty_print_instance_variables private_methods protected_methods psych_to_yaml public_method public_methods public_send remove_instance_variable respond_to? respond_to_missing? send singleton_class singleton_method singleton_methods taint tainted? tap then to_a to_ary to_hash to_int to_io to_proc to_regexp to_s to_str trust untaint untrust untrusted? .new .yaml_tag ::ARGF ::ARGV ::DATA ::ENV ::FALSE ::NIL ::RUBY_COPYRIGHT ::RUBY_DESCRIPTION ::RUBY_ENGINE ::RUBY_ENGINE_VERSION ::RUBY_PATCHLEVEL ::RUBY_PLATFORM ::RUBY_RELEASE_DATE ::RUBY_REVISION ::RUBY_VERSION ::SCRIPT_LINES__ ::STDERR ::STDIN ::STDOUT ::TOPLEVEL_BINDING ::TRUE