22件ヒット
[1-22件を表示]
(0.042秒)
クラス
-
File
:: Stat (11) - IO (11)
検索結果
-
File
:: Stat # blksize -> Integer (18110.0) -
望ましいI/Oのブロックサイズを返します。
...望ましいI/Oのブロックサイズを返します。
//emlist[][ruby]{
fs = File::Stat.new($0)
#例
p fs.blksize #=> nil
//}... -
IO
# stat -> File :: Stat (9.0) -
ファイルのステータスを含む File::Stat オブジェクトを生成して 返します。
...します。
//emlist[例][ruby]{
IO.write("testfile", "This is line one\nThis is line 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...