22件ヒット
[1-22件を表示]
(0.189秒)
ライブラリ
- ビルトイン (22)
クラス
-
File
:: Stat (11) - IO (11)
検索結果
-
File
:: Stat # blksize -> Integer (30324.0) -
望ましいI/Oのブロックサイズを返します。
...望ましいI/Oのブロックサイズを返します。
//emlist[][ruby]{
fs = File::Stat.new($0)
#例
p fs.blksize #=> nil
//}... -
IO
# stat -> File :: Stat (3207.0) -
ファイルのステータスを含む File::Stat オブジェクトを生成して 返します。
...File::Stat オブジェクトを生成して
返します。
@raise Errno::EXXX ステータスの読み込みに失敗した場合に発生します。
@raise IOError 既に close されていた場合に発生します。
//emlist[例][ruby]{
IO.write("testfile", "This is line one\nThis is lin......e two\n")
File.open("testfile") do |f|
s = f.stat
"%o" % s.mode # => "100644"
s.blksize # => 4096
s.atime # => 2018-03-01 23:19:59 +0900
end
//}
@see File#lstat, File.stat, File.lstat...