chown(owner, group) -> Integer[permalink][rdoc][edit]-
File.chown(owner, group, self.to_s) と同じです。
- [PARAM]
owner: - オーナーを指定します。
- [PARAM]
group: - グループを指定します。
require 'pathname' p Pathname('testfile').stat.uid # => 501 Pathname('testfile').chown(502, 12) p Pathname('testfile').stat.uid # => 502[SEE_ALSO] File.chown, File#chown
- [PARAM]