るりまサーチ

最速Rubyリファレンスマニュアル検索!
70件ヒット [1-70件を表示] (0.021秒)

別のキーワード

  1. rexml/document node_type
  2. win32ole ole_type
  3. rss type
  4. rss type=
  5. net/imap media_type

クラス

キーワード

検索結果

Net::FTP::MLSxEntry#type -> String|nil (18104.0)

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

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

"file", "dir", "cdir", "pdir" などを返します。

情報がない場合は nil を返しますが、通常は
あるはずです。

Net::FTP::MLSxEntry#media_type -> String|nil (6110.0)

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

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

IANA media type の値を返します。

情報がない場合は nil を返します。...

Net::FTP::MLSxEntry#facts -> { String => String|Integer|Time } (21.0)

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

...りません。
3659 では
modify, perm, type, size, unique はすべてのサーバで
対応すべき(SHOULD)、とされています。


* "modify" : 変更時刻 (Time)
* "create": 作成時刻
* "perm": パーミッション(String)
* "type": 種類(String, "file", "dir", "cdir", "pdi...
...* "size": ファイルサイズ (Integer, octet単位)
* "unique": ユニークID (String)
* "lang": ファイルの言語 (String)
* "media-type": メディアタイプ (String)
* "charset": 文字エンコーディング (String)

サーバが UNIX 系 OS の場合は以下のような f...

Net::FTP#mlsd(pathname = nil) -> [Net::FTP::MLSxEntry] (15.0)

pathname で指定したディレクトリに含まれているファイルの詳細な情報を得ます。

...require 'net/ftp'

Net::FTP.open("ftp.example.org") do |ftp|
ftp.login("anonymous", "foobar@example.com")
p ftp.mlsd("/")
# =>
# [#<Net::FTP::MLSxEntry:0x00558fbfa379c0
# @facts=
# {"modify"=>2014-08-25 16:44:41 UTC,
# "perm"=>"fle",
# "type"=>"cdir"...
...:FTP::MLSxEntry:0x00558fbfa33e10
# @facts=
# {"modify"=>2004-12-22 08:56:36 UTC,
# "perm"=>"adfr",
# "size"=>1128,
# "type"=>"file",
# "unique"=>"801U1FEF97",
# "unix.group"=>0,
# "unix.mode"=>420,
# "unix.owner"=>106},
# @pathname="README....

Net::FTP#mlsd(pathname = nil) {|entry| ... } -> () (15.0)

pathname で指定したディレクトリに含まれているファイルの詳細な情報を得ます。

...require 'net/ftp'

Net::FTP.open("ftp.example.org") do |ftp|
ftp.login("anonymous", "foobar@example.com")
p ftp.mlsd("/")
# =>
# [#<Net::FTP::MLSxEntry:0x00558fbfa379c0
# @facts=
# {"modify"=>2014-08-25 16:44:41 UTC,
# "perm"=>"fle",
# "type"=>"cdir"...
...:FTP::MLSxEntry:0x00558fbfa33e10
# @facts=
# {"modify"=>2004-12-22 08:56:36 UTC,
# "perm"=>"adfr",
# "size"=>1128,
# "type"=>"file",
# "unique"=>"801U1FEF97",
# "unix.group"=>0,
# "unix.mode"=>420,
# "unix.owner"=>106},
# @pathname="README....

絞り込み条件を変える

Net::FTP::MLSxEntry#directory? -> bool (9.0)

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

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

Net::FTP::MLSxEntry#type が "dir"、 "pdir"、 "cdir"、
のいずれかであれば true を返します。...

Net::FTP::MLSxEntry#file? -> bool (9.0)

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

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

Net::FTP::MLSxEntry#type == "file" と同じ意味です。...