るりまサーチ

最速Rubyリファレンスマニュアル検索!
126件ヒット [101-126件を表示] (0.067秒)

別のキーワード

  1. file chmod
  2. _builtin chmod
  3. pathname chmod
  4. fileutils chmod
  5. fileutils chmod_r

ライブラリ

クラス

モジュール

キーワード

検索結果

<< < 1 2 >>

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...
<< < 1 2 >>