ライブラリ
- ビルトイン (151)
- fileutils (12)
-
net
/ ftp (10) - pathname (24)
- shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) - win32ole (12)
- zlib (24)
クラス
- File (79)
-
File
:: Stat (36) - IO (12)
-
Net
:: FTP :: MLSxEntry (10) - Pathname (24)
- Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) -
WIN32OLE
_ VARIABLE (12) -
Zlib
:: GzipWriter (24)
モジュール
-
File
:: Constants (12) - FileUtils (12)
検索結果
先頭5件
-
File
:: Stat (6.0) -
ファイルの情報を格納したオブジェクトのクラス。
...ァイルサイズ(バイト単位)
blksize 望ましいI/Oのブロックサイズ
blocks 割り当てられているブロック数
atime 最終アクセス時刻
mtime 最終更新時刻
ctime 最終状態変更時刻(状態の変更とは chmod などによ... -
File
:: Stat # birthtime -> Time (6.0) -
作成された時刻を返します。
...tfile")
sleep 10
File.read("testfile")
File.stat("testfile").birthtime #=> 2014-02-24 11:19:17 +0900
File.stat("testfile").mtime #=> 2014-02-24 11:19:27 +0900
File.stat("testfile").ctime #=> 2014-02-24 11:19:37 +0900
File.stat("testfile").atime #=> 2014-02-24 11:19:47 +0900
//}... -
File
:: Stat . new(path) -> File :: Stat (6.0) -
path に関する File::Stat オブジェクトを生成して返します。 File.stat と同じです。
...m Files/ruby-1.8/lib/ruby/site_ruby/1.8"
p File::Stat.new($:[0])
#=> 例
#<File::Stat dev=0x2, ino=0, mode=040755, nlink=1, uid=0, gid=0, rdev=0x2, size=0, blksize=nil, blocks=nil, atime=Sun Sep 02 14:15:20 +0900 2007, mtime=Tue Apr 24 23:03:44 +0900 2007, ctime=Tue Apr 24 23:03:37 +0900 2007>
//}... -
IO
# stat -> File :: Stat (6.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... -
NEWS for Ruby 2
. 5 . 0 (6.0) -
NEWS for Ruby 2.5.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...ではGVLを解放するようになりました
13941
* File.rename GVL を解放するようになりました 13951
* File::Stat#atime, File::Stat#mtime, File::Stat#ctime
Windows 8 以降でタイムスタンプの分数表現をサポートしました 13726
* File::Stat#... -
Net
:: FTP :: MLSxEntry # facts -> { String => String|Integer|Time } (6.0) -
そのエントリの「facts」を返します。
...unix.mode": ファイルモード(Integer)
* "unix.group": グループ(Integer)
* "unix.owner": ファイルのオーナー(Integer)
* "unix.atime": ファイルに最後にアクセスした時刻 (Time)
* "unix.ctime": ファイルを作成した時刻 (Time)
これ以外の非標準的... -
WIN32OLE
_ VARIABLE # ole _ type _ detail -> [String] (6.0) -
変数の型と属性を取得します。
...ED, _ULARGE_INTEGER] cbSize
_FILETIME [USERDEFINED, _FILETIME] mtime
_FILETIME [USERDEFINED, _FILETIME] ctime
_FILETIME [USERDEFINED, _FILETIME] atime
UI4 [UI4] grfMode
UI4 [UI4] grfLocksSupported
GUID [USERDEFINED, GUID] clsid
UI4 [UI4] grfStateBits
UI4 [UI4] reserved
上例のように、...