5件ヒット
[1-5件を表示]
(0.032秒)
クラス
-
Net
:: FTP (2) -
Net
:: FTP :: MLSxEntry (3)
検索結果
先頭5件
-
Net
:: FTP :: MLSxEntry # type -> String|nil (54328.0) -
エントリの種類を返します。
エントリの種類を返します。
"file", "dir", "cdir", "pdir" などを返します。
情報がない場合は nil を返しますが、通常は
あるはずです。 -
Net
:: FTP :: MLSxEntry # file? -> bool (18346.0) -
エントリの種類がファイルであれば true を返します。
エントリの種類がファイルであれば true を返します。
Net::FTP::MLSxEntry#type == "file" と同じ意味です。 -
Net
:: FTP :: MLSxEntry # facts -> { String => String|Integer|Time } (79.0) -
そのエントリの「facts」を返します。
そのエントリの「facts」を返します。
facts とはそのエントリに関するファイルサイズなどの様々な情報です。
Net::FTP はこの情報を文字列をキーとするハッシュテーブルで
返します。
標準では以下のような facts が定義されています。これらの facts には
対応するメソッドが定義されています。すべてのサーバでこれら
の facts がすべて実装されているわけではありません。
3659 では
modify, perm, type, size, unique はすべてのサーバで
対応すべき(SHOULD)、とされています。
* "modify" : 変更時刻 (Ti... -
Net
:: FTP # mlsd(pathname = nil) -> [Net :: FTP :: MLSxEntry] (61.0) -
pathname で指定したディレクトリに含まれているファイルの詳細な情報を得ます。
...コマンドとして
MLST/MLSD が定義されました。
@param pathname 情報を得るディレクトリ名
@see Net::FTP#mlst
require 'net/ftp'
Net::FTP.open("ftp.example.org") do |ftp|
ftp.login("anonymous", "foobar@example.com")
p ftp.mlsd("/")
# =>
# [#<Net::FTP::M... -
Net
:: FTP # mlsd(pathname = nil) {|entry| . . . } -> () (61.0) -
pathname で指定したディレクトリに含まれているファイルの詳細な情報を得ます。
...コマンドとして
MLST/MLSD が定義されました。
@param pathname 情報を得るディレクトリ名
@see Net::FTP#mlst
require 'net/ftp'
Net::FTP.open("ftp.example.org") do |ftp|
ftp.login("anonymous", "foobar@example.com")
p ftp.mlsd("/")
# =>
# [#<Net::FTP::M...