るりまサーチ

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

別のキーワード

  1. _builtin stat
  2. csv stat
  3. gc stat
  4. pathname stat
  5. io stat

ライブラリ

モジュール

キーワード

検索結果

<< < ... 3 4 5 >>

File.lchown(owner, group, *filename) -> Integer (7.0)

File#chown と同様ですが、 シンボリックリンクに関してリンクそのもののオーナー、 グループを変更します。

...発生します。

//emlist[例][ruby]{
IO.write("testfile", "test")
File.symlink("testfile", "testlink")
File.chown(501, -1, "testfile")
File.lstat("testlink").ftype # => "link"
File.lchown(0, -1, "testlink")
File.stat("testlink").uid # => 501
File.lstat("testlink").uid # => 0
//}...
<< < ... 3 4 5 >>