36件ヒット
[1-36件を表示]
(0.015秒)
クラス
-
Net
:: FTP (18) -
Net
:: FTP :: MLSxEntry (18)
検索結果
先頭4件
-
Net
:: FTP :: MLSxEntry # perm -> String|nil (18104.0) -
パーミッション文字列を返します。
パーミッション文字列を返します。
情報がない場合は nil を返しますが、通常は
あるはずです。 -
Net
:: FTP # mlsd(pathname = nil) -> [Net :: FTP :: MLSxEntry] (15.0) -
pathname で指定したディレクトリに含まれているファイルの詳細な情報を得ます。
...:FTP#mlst
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",
# "t......106},
# @pathname => ".",
# #<Net::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,
#... -
Net
:: FTP # mlsd(pathname = nil) {|entry| . . . } -> () (15.0) -
pathname で指定したディレクトリに含まれているファイルの詳細な情報を得ます。
...:FTP#mlst
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",
# "t......106},
# @pathname => ".",
# #<Net::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,
#... -
Net
:: FTP :: MLSxEntry # facts -> { String => String|Integer|Time } (15.0) -
そのエントリの「facts」を返します。
...ているわけではありません。
3659 では
modify, perm, type, size, unique はすべてのサーバで
対応すべき(SHOULD)、とされています。
* "modify" : 変更時刻 (Time)
* "create": 作成時刻
* "perm": パーミッション(String)
* "type": 種類(String, "fi...