るりまサーチ

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

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file size
  4. file open
  5. file mtime

ライブラリ

クラス

キーワード

検索結果

File::Stat#gid -> Integer (21114.0)

オーナーのグループIDを返します。

...オーナーのグループIDを返します。

//emlist[][ruby]{
fs = File::Stat.new($0)
#例
p fs.gid #=> 0
//}...

File::Stat#setgid? -> bool (9107.0)

setgidされている時に真を返します。

...setgidされている時に真を返します。

//emlist[][ruby]{
Dir.glob("/usr/sbin/*") {|bd|
if File::Stat.new(bd).setgid?
puts bd
end
}
#例
#...
#=> /usr/sbin/postqueue
#...
//}...

File#chown(owner, group) -> 0 (9031.0)

ファイルのオーナーとグループを変更します。

...ます。

@raise Errno::EXXX 変更に失敗した場合に発生します。

//emlist[例][ruby]{
File
.open("testfile") { |f| f.chown(502, 1000) } # => 0
File
.stat("testfile").uid # => 502
File
.stat("testfile").gid # => 1000
//}

@see File.chown...

Shell#setgid?(file) -> bool (6208.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

...
File
Test モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列を指定します。

@see FileTest.#setgid?...

Shell::CommandProcessor#setgid?(file) -> bool (6208.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

...
File
Test モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列を指定します。

@see FileTest.#setgid?...

絞り込み条件を変える

Shell::Filter#setgid?(file) -> bool (6208.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

...
File
Test モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列を指定します。

@see FileTest.#setgid?...