11件ヒット
[1-11件を表示]
(0.016秒)
ライブラリ
- ビルトイン (11)
検索結果
-
IO
# stat -> File :: Stat (7.0) -
ファイルのステータスを含む File::Stat オブジェクトを生成して 返します。
...します。
@raise IOError 既に close されていた場合に発生します。
//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-0...