るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.024秒)
トップページ > クエリ:File[x] > クエリ:IO[x] > クエリ:size?[x]

別のキーワード

  1. io popen
  2. io pipe
  3. io readlines
  4. io each_line
  5. io each

ライブラリ

クラス

モジュール

検索結果

File.size?(path) -> Integer | nil (39106.0)

FileTest.#size? と同じです。

...
File
Test.#size? と同じです。

@param path パスを表す文字列か IO オブジェクトを指定します。...

FileTest.#size?(file) -> Integer | nil (21237.0)

ファイルのサイズを返します。ファイルが存在しない時や ファイルのサイズが0の時には nil を返します。

...m file ファイル名を表す文字列か IO オブジェクトを指定します。

@raise IOError 指定された IO オブジェクト file が既に close されていた場合に発生します。

//emlist[例][ruby]{
IO
.write("testfile", "test")
File
Test.size?("testfile") # => 4
File
....
...delete("testfile")
File
Test.size?("testfile") # => nil
//}

@see FileTest.#size, FileTest.#zero?...