るりまサーチ

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

別のキーワード

  1. matrix l
  2. kernel $-l
  3. _builtin $-l
  4. lupdecomposition l
  5. $-l kernel

ライブラリ

クラス

モジュール

検索結果

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

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

...nil を返します。

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

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

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

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

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

FileTest.#size? と同じです。

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

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