最速Rubyリファレンスマニュアル検索!
すべて(11)
2.1.0(1)
2.2.0(1)
2.3.0(1)
2.4.0(1)
2.5.0(1)
2.6.0(1)
2.7.0(1)
3.0(1)
3.1(1)
3.2(1)
3.3(1)
11件ヒット
[1-11件を表示]
(0.016秒)
トップページ
>
クラス:
File
>
:
lstat
>
:size
別のキーワード
file lstat
pathname lstat
_builtin lstat
shell lstat
lstat file
ライブラリ
ビルトイン
(11)
検索結果
先頭1件
File
#
size -> Integer
File
#
size -> Integer
(18114.0)
2.1.0
2.2.0
2.3.0
2.4.0
2.5.0
2.6.0
2.7.0
3.0
3.1
3.2
3.3
インスタンスメソッド
ファイルのサイズを返します。
...
ファイルのサイズを返します。
//emlist[例][ruby]{
File
.open("/dev/null") do |f|
f.
size
#=> 0
end
//}
@raise IOError 自身が close されている場合に発生します。
@raise Errno::EXXX 失敗した場合に発生します。
@see
File
#
lstat
...