126件ヒット
[101-126件を表示]
(0.067秒)
ライブラリ
- ビルトイン (48)
- pathname (36)
- shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6) - un (24)
クラス
- File (24)
-
File
:: Stat (24) - Pathname (36)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6)
モジュール
- Kernel (24)
検索結果
-
File
:: Stat # birthtime -> Time (7.0) -
作成された時刻を返します。
...irthtime のない環境で発生します。
//emlist[][ruby]{
File.write("testfile", "foo")
sleep 10
File.write("testfile", "bar")
sleep 10
File.chmod(0644, "testfile")
sleep 10
File.read("testfile")
File.stat("testfile").birthtime #=> 2014-02-24 11:19:17 +0900
File.stat("testfile").mtime... -
Kernel
# install -> () (7.0) -
ファイルをコピーし、その属性を設定します。
...性を設定します。
ruby -run -e install -- [OPTION] SOURCE DEST
-p ファイルのアクセス時刻と修正時刻を保持します。
-m chmod と同じようにファイルのパーミッションを設定します。
-v 詳細表示
@see install(1)... -
Pathname
# ctime -> Time (7.0) -
File.ctime(self.to_s) を渡したものと同じです。
....ctime(self.to_s) を渡したものと同じです。
//emlist[例][ruby]{
require 'pathname'
IO.write("testfile", "test")
pathname = Pathname("testfile")
pathname.ctime # => 2019-01-14 00:39:51 +0900
sleep 1
pathname.chmod(0755)
pathname.ctime # => 2019-01-14 00:39:52 +0900
//}
@see File.ctime...