2件ヒット
[1-2件を表示]
(0.042秒)
別のキーワード
クラス
-
File
:: Stat (1) - Pathname (1)
検索結果
-
File
:: Stat # uid -> Integer (54646.0) -
オーナーのユーザIDを返します。
オーナーのユーザIDを返します。
//emlist[][ruby]{
fs = File::Stat.new($0)
#例
p fs.uid #=> 0
//} -
Pathname
# chown(owner , group) -> Integer (361.0) -
File.chown(owner, group, self.to_s) と同じです。
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