るりまサーチ

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

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

ライブラリ

クラス

モジュール

検索結果

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

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

... IO オブジェクトを指定します。

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

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

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

FileTest.#size? と同じです。

...FileTest.#size? と同じです。

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