るりまサーチ (Ruby 2.5.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.017秒)
トップページ > バージョン:2.5.0[x] > クエリ:File[x] > クエリ:uid[x] > ライブラリ:pathname[x]

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file size
  4. file atime
  5. file ctime

クラス

検索結果

Pathname#chown(owner, group) -> Integer (127.0)

File.chown(owner, group, self.to_s) と同じです。

...

@param owner オーナーを指定します。

@param group グループを指定します。

//emlist[例][ruby]{
require 'pathname'

Pathname
('testfile').stat.uid # => 501
Pathname
('testfile').chown(502, 12)
Pathname
('testfile').stat.uid # => 502
//}

@see File.chown, File#chown...