63件ヒット
[1-63件を表示]
(0.115秒)
クラス
-
Net
:: FTP (18) -
Net
:: FTP :: MLSxEntry (45)
キーワード
- directory? (9)
- facts (9)
- file? (9)
-
media
_ type (9) - mlsd (18)
- type (9)
検索結果
先頭5件
-
Net
:: FTP :: MLSxEntry # media _ type -> String|nil (15309.0) -
メディアタイプを返します。
...メディアタイプを返します。
IANA media type の値を返します。
情報がない場合は nil を返します。... -
Net
:: FTP :: MLSxEntry # file? -> bool (12208.0) -
エントリの種類がファイルであれば true を返します。
...エントリの種類がファイルであれば true を返します。
Net::FTP::MLSxEntry#type == "file" と同じ意味です。... -
Net
:: FTP :: MLSxEntry # type -> String|nil (9303.0) -
エントリの種類を返します。
...エントリの種類を返します。
"file", "dir", "cdir", "pdir" などを返します。
情報がない場合は nil を返しますが、通常は
あるはずです。... -
Net
:: FTP :: MLSxEntry # directory? -> bool (9208.0) -
エントリがディレクトリであれば true を返します。
...エントリがディレクトリであれば true を返します。
Net::FTP::MLSxEntry#type が "dir"、 "pdir"、 "cdir"、
のいずれかであれば true を返します。... -
Net
:: FTP # mlsd(pathname = nil) -> [Net :: FTP :: MLSxEntry] (6314.0) -
pathname で指定したディレクトリに含まれているファイルの詳細な情報を得ます。
...ディレクトリの各ファイルの情報が
Net::FTP::MLSxEntry のオブジェクトの配列として得られます。
どのような情報を取り出せるかは Net::FTP::MLSxEntry
を参照してください。
Net::FTP#list は
結果が文字列で得られるため、それを適......TPのLISTコマンドは
その出力結果の標準化がなされていないため、標準的結果を得るコマンドとして
MLST/MLSD が定義されました。
@param pathname 情報を得るディレクトリ名
@see Net::FTP#mlst
require 'net/ftp'
Net::FTP.open("ftp.example.or......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",
# "unique"=>"801U1FE8E6",
# "unix.group"=>104... -
Net
:: FTP # mlsd(pathname = nil) {|entry| . . . } -> () (6214.0) -
pathname で指定したディレクトリに含まれているファイルの詳細な情報を得ます。
...ディレクトリの各ファイルの情報が
Net::FTP::MLSxEntry のオブジェクトの配列として得られます。
どのような情報を取り出せるかは Net::FTP::MLSxEntry
を参照してください。
Net::FTP#list は
結果が文字列で得られるため、それを適......TPのLISTコマンドは
その出力結果の標準化がなされていないため、標準的結果を得るコマンドとして
MLST/MLSD が定義されました。
@param pathname 情報を得るディレクトリ名
@see Net::FTP#mlst
require 'net/ftp'
Net::FTP.open("ftp.example.or......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",
# "unique"=>"801U1FE8E6",
# "unix.group"=>104... -
Net
:: FTP :: MLSxEntry # facts -> { String => String|Integer|Time } (3320.0) -
そのエントリの「facts」を返します。
...は
modify, perm, type, size, unique はすべてのサーバで
対応すべき(SHOULD)、とされています。
* "modify" : 変更時刻 (Time)
* "create": 作成時刻
* "perm": パーミッション(String)
* "type": 種類(String, "file", "dir", "cdir", "pdir" など)
* "size":......ファイルサイズ (Integer, octet単位)
* "unique": ユニークID (String)
* "lang": ファイルの言語 (String)
* "media-type": メディアタイプ (String)
* "charset": 文字エンコーディング (String)
サーバが UNIX 系 OS の場合は以下のような facts が......ます。
* "unix.mode": ファイルモード(Integer)
* "unix.group": グループ(Integer)
* "unix.owner": ファイルのオーナー(Integer)
* "unix.atime": ファイルに最後にアクセスした時刻 (Time)
* "unix.ctime": ファイルを作成した時刻 (Time)
これ以外...