7件ヒット
[1-7件を表示]
(0.130秒)
別のキーワード
クラス
-
Net
:: FTP (2) -
Net
:: FTP :: MLSxEntry (5)
キーワード
- directory? (1)
- facts (1)
- file? (1)
-
media
_ type (1) - mlsd (2)
検索結果
先頭5件
-
Net
:: FTP :: MLSxEntry # type -> String|nil (78313.0) -
エントリの種類を返します。
エントリの種類を返します。
"file", "dir", "cdir", "pdir" などを返します。
情報がない場合は nil を返しますが、通常は
あるはずです。 -
Net
:: FTP :: MLSxEntry # media _ type -> String|nil (42331.0) -
メディアタイプを返します。
メディアタイプを返します。
IANA media type の値を返します。
情報がない場合は nil を返します。 -
Net
:: FTP # mlsd(pathname = nil) -> [Net :: FTP :: MLSxEntry] (24064.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| . . . } -> () (24064.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 :: MLSxEntry # facts -> { String => String|Integer|Time } (24064.0) -
そのエントリの「facts」を返します。
そのエントリの「facts」を返します。
facts とはそのエントリに関するファイルサイズなどの様々な情報です。
Net::FTP はこの情報を文字列をキーとするハッシュテーブルで
返します。
標準では以下のような facts が定義されています。これらの facts には
対応するメソッドが定義されています。すべてのサーバでこれら
の facts がすべて実装されているわけではありません。
3659 では
modify, perm, type, size, unique はすべてのサーバで
対応すべき(SHOULD)、とされています。
* "modify" : 変更時刻 (Ti... -
Net
:: FTP :: MLSxEntry # directory? -> bool (24028.0) -
エントリがディレクトリであれば true を返します。
エントリがディレクトリであれば true を返します。
Net::FTP::MLSxEntry#type が "dir"、 "pdir"、 "cdir"、
のいずれかであれば true を返します。 -
Net
:: FTP :: MLSxEntry # file? -> bool (24028.0) -
エントリの種類がファイルであれば true を返します。
エントリの種類がファイルであれば true を返します。
Net::FTP::MLSxEntry#type == "file" と同じ意味です。