るりまサーチ (Ruby 2.5.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.072秒)
トップページ > クエリ:File.stat[x] > ライブラリ:ビルトイン[x] > クエリ:pipe?[x] > バージョン:2.5.0[x] > クエリ:mtime[x] > クエリ:executable_real?[x] > クラス:IO[x] > 種類:インスタンスメソッド[x]

別のキーワード

  1. _builtin eql?
  2. _builtin empty?
  3. _builtin pipe
  4. io pipe
  5. _builtin include?

検索結果

IO#stat -> File::Stat (55126.0)

ファイルのステータスを含む File::Stat オブジェクトを生成して 返します。

...

@raise Errno::EXXX ステータスの読み込みに失敗した場合に発生します。

@raise IOError 既に close されていた場合に発生します。

//emlist[例][ruby]{
IO
.write("testfile", "This is line one\nThis is line two\n")
File.open("testfile") do |f|
s = f.stat
"%o...