40件ヒット
[1-40件を表示]
(0.086秒)
検索結果
先頭4件
-
Net
:: FTP :: MLSxEntry # modify -> Time|nil (26102.0) -
エントリの変更時刻を返します。
エントリの変更時刻を返します。
情報がない場合は nil を返しますが、通常は
あるはずです。 -
Net
:: FTP # mlsd(pathname = nil) -> [Net :: FTP :: MLSxEntry] (8019.0) -
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::MLSxEntry:0x00558fbfa379c0
# @facts=
# {"modify"=>2014-08-25 16:44:41 UTC,
# "perm"=......"unix.mode"=>493,
# "unix.owner"=>106},
# @pathname => ".",
# #<Net::FTP::MLSxEntry:0x00558fbfa33e10
# @facts=
# {"modify"=>2004-12-22 08:56:36 UTC,
# "perm"=>"adfr",
# "size"=>1128,
# "type"=>"file",
# "unique"=>"801U1FEF97",
# "unix.gro... -
Net
:: FTP # mlsd(pathname = nil) {|entry| . . . } -> () (8019.0) -
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::MLSxEntry:0x00558fbfa379c0
# @facts=
# {"modify"=>2014-08-25 16:44:41 UTC,
# "perm"=......"unix.mode"=>493,
# "unix.owner"=>106},
# @pathname => ".",
# #<Net::FTP::MLSxEntry:0x00558fbfa33e10
# @facts=
# {"modify"=>2004-12-22 08:56:36 UTC,
# "perm"=>"adfr",
# "size"=>1128,
# "type"=>"file",
# "unique"=>"801U1FEF97",
# "unix.gro... -
Net
:: FTP :: MLSxEntry # facts -> { String => String|Integer|Time } (8013.0) -
そのエントリの「facts」を返します。
...の facts がすべて実装されているわけではありません。
3659 では
modify, perm, type, size, unique はすべてのサーバで
対応すべき(SHOULD)、とされています。
* "modify" : 変更時刻 (Time)
* "create": 作成時刻
* "perm": パーミッション(Str...