ライブラリ
- ビルトイン (175)
- fileutils (36)
-
net
/ ftp (12) - pathname (24)
-
rubygems
/ package / tar _ header (12) -
rubygems
/ remote _ fetcher (12) - shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) -
webrick
/ httpservlet / filehandler (12) - win32ole (12)
- zlib (24)
クラス
- File (91)
-
File
:: Stat (36) -
Gem
:: Package :: TarHeader (12) -
Gem
:: RemoteFetcher (12) -
Net
:: FTP (12) - Pathname (24)
- Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - Time (24)
-
WEBrick
:: HTTPServlet :: DefaultFileHandler (12) -
WIN32OLE
_ VARIABLE (12) -
Zlib
:: GzipFile (12) -
Zlib
:: GzipWriter (12)
モジュール
- FileUtils (24)
キーワード
- FileUtils (12)
-
NEWS for Ruby 2
. 5 . 0 (8) - Stat (12)
- Time (12)
- atime (12)
- birthtime (23)
- ctime (12)
-
fetch
_ path (12) - gmtime (12)
- lutime (8)
- mtime= (12)
- new (12)
-
not
_ modified? (12) -
ole
_ type _ detail (12) - stat (12)
- touch (12)
- tsort (12)
- utc (12)
- utime (42)
検索結果
先頭5件
-
File
:: Stat # birthtime -> Time (6.0) -
作成された時刻を返します。
...0
File.chmod(0644, "testfile")
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-... -
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>
//}... -
FileUtils (6.0)
-
基本的なファイル操作を集めたモジュールです。
...コピー先を削除します。
: :secure
真を指定するとファイルの削除に FileUtils.#remove_entry_secure を使用します。
: :mtime
時刻を Time か、起算時からの経過秒数を数値で指定します。
: :parents
真を指定すると指定したディレクト... -
FileUtils
. options -> Array (6.0) -
オプション名の配列を返します。
...オプション名の配列を返します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.options
# => ["verbose", "mode", "noop", "parents", "force", "preserve", "dereference_root", "remove_destination", "secure", "mtime", "nocreate"]
//}......オプション名の配列を返します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.options
# => ["noop", "verbose", "force", "mode", "parents", "owner", "group", "preserve", "dereference_root", "remove_destination", "secure", "mtime", "nocreate"]
//}... -
NEWS for Ruby 2
. 5 . 0 (6.0) -
NEWS for Ruby 2.5.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...するようになりました
13941
* File.rename GVL を解放するようになりました 13951
* File::Stat#atime, File::Stat#mtime, File::Stat#ctime
Windows 8 以降でタイムスタンプの分数表現をサポートしました 13726
* File::Stat#ino, File.identica... -
Time (6.0)
-
時刻を表すクラスです。
...時刻を表すクラスです。
Time.now は現在の時刻を返します。
File.mtime などが返すファイルのタイムスタンプは Time
オブジェクトです。
Time オブジェクトは時刻を起算時からの経過秒数で保持しています。
起算時は協定世界......います。
タイムゾーンのフラグは Marshal データに保持されます。
//emlist[][ruby]{
p Marshal.load(Marshal.dump(Time.now.gmtime)).zone
# => "UTC"
//}
time ライブラリによって、Time.parse, Time.rfc2822, Time.httpdate, Time.iso8601 等が拡張されます。
Ruby 1.... -
WIN32OLE
_ VARIABLE # ole _ type _ detail -> [String] (6.0) -
変数の型と属性を取得します。
...Tで未定義なので変換できない
UI4 [UI4] type
_ULARGE_INTEGER [USERDEFINED, _ULARGE_INTEGER] cbSize
_FILETIME [USERDEFINED, _FILETIME] mtime
_FILETIME [USERDEFINED, _FILETIME] ctime
_FILETIME [USERDEFINED, _FILETIME] atime
UI4 [UI4] grfMode
UI4 [UI4] grfLocksSupported
GUID [USERDEF...