るりまサーチ

最速Rubyリファレンスマニュアル検索!
36件ヒット [1-36件を表示] (0.037秒)
トップページ > クエリ:|[x] > クエリ:-[x] > クエリ:modify[x] > ライブラリ:net/ftp[x]

別のキーワード

  1. _builtin |
  2. ipaddr |
  3. set |
  4. array |
  5. integer |

クラス

キーワード

検索結果

Net::FTP::MLSxEntry#modify -> Time|nil (18304.0)

エントリの変更時刻を返します。

エントリの変更時刻を返します。

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

Net::FTP#mlsd(pathname = nil) {|entry| ... } -> () (251.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"=>"fle"...
...x.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.group"=>...

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

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

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


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

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

Net::FTP#mlsd(pathname = nil) -> [Net::FTP::MLSxEntry] (151.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"=>"fle"...
...x.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.group"=>...