るりまサーチ

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

別のキーワード

  1. fiddle ruby_free
  2. rbconfig ruby
  3. fiddle build_ruby_platform
  4. rake ruby
  5. rubygems/defaults ruby_engine

ライブラリ

クラス

モジュール

検索結果

Kernel#chmod -> () (21138.0)

ファイルのアクセス権を変更します。

...ファイルのアクセス権を変更します。

Change the mode of each FILE to OCTAL-MODE.

ruby
-run -e chmod -- [OPTION] OCTAL-MODE FILE

-v 詳細表示

@see chmod(1)...

File::Stat#birthtime -> Time (9167.0)

作成された時刻を返します。

...ます。

@raise NotImplementedError Windows のような birthtime のない環境で発生します。

//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 #=> 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
//}...